|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Type
SFE.Compiler.ParentType
SFE.Compiler.ArrayType
public class ArrayType
Class ArraType is used for representing an Array that was defined in the program.
Constructor Summary | |
---|---|
ArrayType(Type type,
int length)
Constructs a new ArrayType object from a given length and base type. |
Method Summary | |
---|---|
Type |
getBaseType()
Returns the base type of this ArrayType. |
java.util.Vector |
getDerivedLvalues(Lvalue base)
Returns a vector of all the derived lvalue (inluding this lvalue). |
int |
getLength()
Returns the length of this array. |
java.lang.String |
getNameAt(java.lang.String baseName,
int i)
Returns the name of the bit at offset i in the array. |
int |
size()
Returns the length of the this ArrayType in bits. |
java.lang.String |
toFormat()
Returns a String representing this object as it should appear in the format file. |
java.lang.String |
toFormat(java.lang.String parentName,
Function function)
Returns a String representing this object as it should appear in the format file. |
java.lang.String |
toString()
Returns a string representation of the this ArrayType. |
Methods inherited from class SFE.Compiler.ParentType |
---|
hasDerives |
Methods inherited from class SFE.Compiler.Type |
---|
defineName, fromName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayType(Type type, int length)
type
- the base type of this array.length
- the length of this array.Method Detail |
---|
public int size()
size
in class Type
public int getLength()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toFormat()
toFormat
in class Type
public Type getBaseType()
public java.util.Vector getDerivedLvalues(Lvalue base)
getDerivedLvalues
in class ParentType
base
- the lvalue that called the this method (base.type == this)public java.lang.String toFormat(java.lang.String parentName, Function function)
public java.lang.String getNameAt(java.lang.String baseName, int i)
getNameAt
in class ParentType
baseName
- the name of a childi
- the offset in bits of this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |