|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Type
public abstract class Type
Holds the type of a Value and also defines possible operations. Classes extended from this type will have to define the individual operation that are defined on those types. e.g. addition operation may be defined for the integer type.
Method Summary | |
---|---|
Value |
addressOf(Value var1,
ByteOrder order,
int wordSize)
Evaluates the address of a variable. |
boolean |
completeFollowSym(String incomplete,
List candidates)
Complete the type's next token; return false if nothing completed. |
boolean |
completeMember(String incomplete,
List candidates)
Complete the type's member; return false if nothing completed. |
Value |
dereference(Value var1,
ByteBuffer taskMem)
Implements dereference operation for a pointer type. |
ArithmeticUnit |
getALU(ArrayType type,
int wordSize)
|
ArithmeticUnit |
getALU(FloatingPointType type,
int wordSize)
|
ArithmeticUnit |
getALU(int wordSize)
|
ArithmeticUnit |
getALU(IntegerType type,
int wordSize)
|
ArithmeticUnit |
getALU(PointerType type,
int wordSize)
|
ArithmeticUnit |
getALU(Type type,
int wordSize)
|
String |
getName()
|
int |
getSize()
|
Type |
getSliceType()
Get the type of slice. |
Type |
getType()
Return the element type for array or pointer type. |
Type |
getUltimateType()
Return the ultimate type (ignoring any decorator and other attributes). |
Value |
index(Value var1,
Value var2,
ByteBuffer taskMem)
Implements subscript operation for a pointer or array type. |
Value |
member(Value var1,
String member)
Implements dot operation on a composite type. |
Type |
pack(int bitSize,
int bitOffset)
Pack this TYPE into bigSize and bitOffset. |
Value |
slice(Value var,
Value i,
Value j,
ByteBuffer taskMem)
Implements slice operation for a pointer or array type - slice the array from index I to index J. |
String |
toPrint()
Print this Type to a StringBuffer and return the String. |
abstract void |
toPrint(StringBuilder stringBuilder,
int indent)
Print this Type after indenting INDENT spaces. |
void |
toPrintBrief(StringBuilder stringBuilder,
int indent)
Print this Type, possibly briefly, after indenting INDENT spaces. |
String |
toString()
For debugging and tracing; just dump the Type's name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getSize()
public String getName()
public Type getUltimateType()
public String toString()
toString
in class Object
public abstract void toPrint(StringBuilder stringBuilder, int indent)
stringBuilder
- TODOpublic void toPrintBrief(StringBuilder stringBuilder, int indent)
stringBuilder
- TODOpublic final String toPrint()
public ArithmeticUnit getALU(Type type, int wordSize)
public ArithmeticUnit getALU(IntegerType type, int wordSize)
public ArithmeticUnit getALU(FloatingPointType type, int wordSize)
public ArithmeticUnit getALU(PointerType type, int wordSize)
public ArithmeticUnit getALU(ArrayType type, int wordSize)
public ArithmeticUnit getALU(int wordSize)
public Value addressOf(Value var1, ByteOrder order, int wordSize)
public Value dereference(Value var1, ByteBuffer taskMem)
public Value member(Value var1, String member)
public Value index(Value var1, Value var2, ByteBuffer taskMem)
public Value slice(Value var, Value i, Value j, ByteBuffer taskMem)
public Type getSliceType()
public Type getType()
public Type pack(int bitSize, int bitOffset)
public boolean completeMember(String incomplete, List candidates)
public boolean completeFollowSym(String incomplete, List candidates)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |