com.svincent.smalljava
Class SmallType.ObjectType

java.lang.Object
  |
  +--com.svincent.util.BaseObject
        |
        +--com.svincent.smalljava.SmallType
              |
              +--com.svincent.smalljava.SmallType.ObjectType
Enclosing class:
SmallType

public static class SmallType.ObjectType
extends SmallType

An instance of a class. In some ways, ObjectType represents the "Type" quality of a class.


Inner classes inherited from class com.svincent.smalljava.SmallType
SmallType.ArrayType, SmallType.MethodType, SmallType.ObjectType, SmallType.PrimitiveType
 
Fields inherited from class com.svincent.smalljava.SmallType
Boolean, Byte, Char, debug, Double, EmptyArray, Float, Int, Long, Short, Void
 
Constructor Summary
SmallType.ObjectType(java.lang.String _className)
           
 
Method Summary
protected  void addArrayNew(ClassFileWriter out)
          make an appropriately typed NEWARRAY instruction
 void writeAsJava(java.io.PrintWriter out)
          Write this type out as Java code, if possible.
 void writeDescriptor(java.io.PrintWriter out)
          Write this type's type descriptor to the given PrintWriter.
 
Methods inherited from class com.svincent.smalljava.SmallType
addAdd, addArrayStore, addCmp, addLoad, addReturn, addStore, addSub, array, descriptorToString, isPrimitive, main, parseFieldDescriptor, parseMethodDescriptor, tag, testField, testMethod
 
Methods inherited from class com.svincent.util.BaseObject
dump, dump, dumpToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallType.ObjectType

public SmallType.ObjectType(java.lang.String _className)
Method Detail

writeAsJava

public void writeAsJava(java.io.PrintWriter out)
Description copied from class: SmallType
Write this type out as Java code, if possible. If not possible, do your best.
Overrides:
writeAsJava in class SmallType

writeDescriptor

public void writeDescriptor(java.io.PrintWriter out)
Description copied from class: SmallType
Write this type's type descriptor to the given PrintWriter.
Overrides:
writeDescriptor in class SmallType

addArrayNew

protected void addArrayNew(ClassFileWriter out)
Description copied from class: SmallType
make an appropriately typed NEWARRAY instruction
Overrides:
addArrayNew in class SmallType



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.