SFE.Compiler
Class ParentType

java.lang.Object
  extended by SFE.Compiler.Type
      extended by 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


Constructor Summary
ParentType()
           
 
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 SFE.Compiler.Type
defineName, fromName, size, toFormat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentType

public ParentType()
Method Detail

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 child
i - the offset in bits of this object.
Returns:
a string representation of the real name of bit i.