SFE.Compiler
Class ParentType
java.lang.Object
SFE.Compiler.Type
SFE.Compiler.ParentType
- Direct Known Subclasses:
- ArrayType, StructType
public abstract class ParentType
- extends Type
this class represents types that contain other types such as structs and
arrays
Method Summary |
abstract java.util.Vector |
getDerivedLvalues(Lvalue base)
Returns a vector of all the derived lvalue of this type. |
abstract java.lang.String |
getNameAt(java.lang.String baseName,
int i)
Returns a string representing the real name of the given object. |
boolean |
hasDerives()
Returns true, if these types has drived vars. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParentType
public ParentType()
getDerivedLvalues
public abstract java.util.Vector getDerivedLvalues(Lvalue base)
- Returns a vector of all the derived lvalue of this type.
type that shold return more then one lvalue (derived from the type itself)
in the vector must overide this method.
- Overrides:
getDerivedLvalues
in class Type
- Parameters:
base
- the lavalue that call the this method (base.type == this)
hasDerives
public boolean hasDerives()
- Returns true, if these types has drived vars.
- Overrides:
hasDerives
in class Type
- Returns:
- false.
getNameAt
public abstract java.lang.String getNameAt(java.lang.String baseName,
int i)
- Returns a string representing the real name of the given object.
- Parameters:
baseName
- the name of a childi
- the offset in bits of this object.
- Returns:
- a string representation of the real name of bit i.