|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Type frysk.value.ArithmeticType frysk.value.IntegerType frysk.value.PointerType
public class PointerType
Type for a pointer (or address) of another type.
Constructor Summary | |
---|---|
PointerType(String name,
ByteOrder order,
int size,
Type type)
Create a PointerType. |
Method Summary | |
---|---|
boolean |
completeMember(String incomplete,
List candidates)
Complete the type's member; return false if nothing completed. |
Value |
dereference(Value var1,
ByteBuffer taskMem)
Dereference operation on 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)
|
Type |
getSliceType()
Get the type of slice. |
Type |
getType()
Return the element type for array or pointer type. |
Value |
index(Value v,
Value idx,
ByteBuffer taskMem)
Index Operation for pointers. |
Type |
pack(int bitSize,
int bitOffset)
Pack the type into bitfields. |
Value |
slice(Value v,
Value i,
Value j,
ByteBuffer taskMem)
Slice operation for pointers. |
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. |
Methods inherited from class frysk.value.ArithmeticType |
---|
assign, createValue, createValue, createValue, order, toString |
Methods inherited from class frysk.value.Type |
---|
addressOf, completeFollowSym, getName, getSize, getUltimateType, member, toPrint |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointerType(String name, ByteOrder order, int size, Type type)
typep
- - Type of pointed to value
FIXME: Name is redundant here.Method Detail |
---|
public Type getType()
Type
getType
in class Type
public void toPrint(StringBuilder stringBuilder, int indent)
Type
toPrint
in class ArithmeticType
stringBuilder
- TODOpublic void toPrintBrief(StringBuilder stringBuilder, int indent)
Type
toPrintBrief
in class Type
stringBuilder
- TODOpublic Value dereference(Value var1, ByteBuffer taskMem)
dereference
in class Type
public Value index(Value v, Value idx, ByteBuffer taskMem)
index
in class Type
public Value slice(Value v, Value i, Value j, ByteBuffer taskMem)
slice
in class Type
public Type getSliceType()
Type
getSliceType
in class Type
public ArithmeticUnit getALU(Type type, int wordSize)
getALU
in class IntegerType
public ArithmeticUnit getALU(IntegerType type, int wordSize)
getALU
in class IntegerType
public ArithmeticUnit getALU(PointerType type, int wordSize)
getALU
in class IntegerType
public ArithmeticUnit getALU(FloatingPointType type, int wordSize)
getALU
in class IntegerType
public ArithmeticUnit getALU(ArrayType type, int wordSize)
getALU
in class IntegerType
public ArithmeticUnit getALU(int wordSize)
getALU
in class IntegerType
public boolean completeMember(String incomplete, List candidates)
Type
completeMember
in class Type
public Type pack(int bitSize, int bitOffset)
pack
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |