|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.svincent.util.BaseObject
|
+--com.svincent.smalljava.SmallType
|
+--com.svincent.smalljava.SmallType.PrimitiveType
Reprsents a primitive type, such as int or boolean.
Users cannot create new primitive types: use one of the
static final members on Type instead (such as
Int or Void.
| 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 | |
protected |
SmallType.PrimitiveType(java.lang.String _typeName,
char _typeChar)
|
| Method Summary | |
protected void |
addAdd(ClassFileWriter out)
make an appropriately typed ADD operator (IADD, FADD, etc) |
protected void |
addArrayNew(ClassFileWriter out)
make an appropriately typed NEWARRAY instruction |
protected void |
addArrayStore(ClassFileWriter out)
make an appropriately typed ASTORE operator (IASTORE, AASTORE, etc) |
protected void |
addCmp(ClassFileWriter out)
make an appropriately typed CMP operator (ISUB, LCMP, etc) |
protected void |
addLoad(ClassFileWriter out,
int index)
make an appropriately typed LOAD operator (ILOAD, ALOAD, etc) |
protected void |
addReturn(ClassFileWriter out)
make an appropriately typed RETURN operator (IRETURN, LRETURN, etc) |
protected void |
addStore(ClassFileWriter out,
int index)
make an appropriately typed STORE operator (ISTORE, ASTORE, etc) |
protected void |
addSub(ClassFileWriter out)
make an appropriately typed SUB operator (ISUB, FSUB, etc) |
boolean |
isPrimitive()
Returns 'true' if this type is a primitive type, such as 'int'. |
java.lang.String |
toString()
|
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 |
array,
descriptorToString,
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,
wait,
wait,
wait |
| Constructor Detail |
protected SmallType.PrimitiveType(java.lang.String _typeName,
char _typeChar)
| Method Detail |
public boolean isPrimitive()
public void writeAsJava(java.io.PrintWriter out)
public void writeDescriptor(java.io.PrintWriter out)
protected void addAdd(ClassFileWriter out)
protected void addSub(ClassFileWriter out)
protected void addCmp(ClassFileWriter out)
protected void addLoad(ClassFileWriter out,
int index)
protected void addStore(ClassFileWriter out,
int index)
protected void addArrayStore(ClassFileWriter out)
protected void addReturn(ClassFileWriter out)
protected void addArrayNew(ClassFileWriter out)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.