|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Type
public abstract class Type
Abstract class for representing types that can be defined in the program. This class also functions as a type table for the defined types in the programs.
Constructor Summary | |
---|---|
Type()
|
Method Summary | |
---|---|
static void |
defineName(java.lang.String newTypeName,
Type newType)
Associates the specified newTypeName with the specified newType. |
static Type |
fromName(java.lang.String typeName)
Returns the object representing the type of the specified type name, or null if there was no such type defined for this type name. |
java.util.Vector |
getDerivedLvalues(Lvalue base)
Returns a vector of all the derived lvalue of this type. |
boolean |
hasDerives()
Returns false, types that derive other types. |
abstract int |
size()
Returns the size of this type object in bits. |
abstract java.lang.String |
toFormat()
Returns a String representing this object as it should appear in the format file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Type()
Method Detail |
---|
public abstract int size()
public static Type fromName(java.lang.String typeName)
typeName
- the type name whose associated type is to be returned.
public static void defineName(java.lang.String newTypeName, Type newType) throws java.lang.IllegalArgumentException
newTypeName
- the new Type name with which the specified Type is to be associated.newType
- the Type to be associated with the specified newTypeName.
java.lang.IllegalArgumentException
- if the newTypeName is already defined.public abstract java.lang.String toFormat()
public java.util.Vector getDerivedLvalues(Lvalue base)
base
- the lavalue that call the this method (base.type == this)public boolean hasDerives()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |