|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Type frysk.value.TypeDecorator
abstract class TypeDecorator
Type decorator class, so that a base or composite type can be decorated with various attributes.
Field Summary | |
---|---|
private Type |
decorated
|
Constructor Summary | |
---|---|
TypeDecorator(String name,
Type decorated)
|
Method Summary | |
---|---|
(package private) void |
assign(Location location,
Value value)
Assign VALUE to LOCATION; possibly performing type-conversion. |
int |
getSize()
|
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 var1,
Value var2,
Value var3,
ByteBuffer taskMem)
Implements slice operation for a pointer or array type - slice the array from index I to index J. |
(package private) void |
toPrint(PrintWriter writer,
Location location,
ByteBuffer memory,
Format format,
int indent)
Print Location as Type in user-readable form; use Format to print basic types. |
void |
toPrint(StringBuilder stringBuilder,
int indent)
A guess; sub classes should override. |
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 frysk.value.Type |
---|
addressOf, completeFollowSym, completeMember, dereference, getALU, getALU, getALU, getALU, getALU, getALU, getName, getSliceType, getType, toPrint, toPrint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Type decorated
Constructor Detail |
---|
TypeDecorator(String name, Type decorated)
Method Detail |
---|
public String toString()
Type
toString
in class Type
public Type getUltimateType()
Type
getUltimateType
in class Type
public int getSize()
getSize
in class Type
void toPrint(PrintWriter writer, Location location, ByteBuffer memory, Format format, int indent)
Type
toPrint
in class Type
public void toPrint(StringBuilder stringBuilder, int indent)
toPrint
in class Type
stringBuilder
- TODOpublic void toPrintBrief(StringBuilder stringBuilder, int indent)
Type
toPrintBrief
in class Type
stringBuilder
- TODOvoid assign(Location location, Value value)
Type
assign
in class Type
public Type pack(int bitSize, int bitOffset)
Type
pack
in class Type
public Value member(Value var1, String member)
Type
member
in class Type
public Value index(Value var1, Value var2, ByteBuffer taskMem)
Type
index
in class Type
public Value slice(Value var1, Value var2, Value var3, ByteBuffer taskMem)
Type
slice
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |