|
||||||||||
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.IntegerTypeDecorator frysk.value.PointerType
public class PointerType
Type for a pointer (or address) of another type.
Field Summary | |
---|---|
private Type |
type
|
Constructor Summary | |
---|---|
|
PointerType(String name,
ByteOrder order,
int size,
Type type)
Create a PointerType. |
private |
PointerType(String name,
ByteOrder order,
int size,
Type type,
IntegerType accessor)
|
Method Summary | |
---|---|
protected Type |
clone(IntegerType accessor)
Create a clone of this type, but with the specified acdcessor. |
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. |
Value |
slice(Value v,
Value i,
Value j,
ByteBuffer taskMem)
Slice operation for pointers. |
(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)
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.IntegerTypeDecorator |
---|
getBigInteger, pack, putBigInteger |
Methods inherited from class frysk.value.IntegerType |
---|
assign, bigFloatingPointValue, bigIntegerValue, getBigFloatingPoint, putBigFloatingPoint |
Methods inherited from class frysk.value.ArithmeticType |
---|
assign, createValue, createValue, createValue, createValue, createValue, order, toString |
Methods inherited from class frysk.value.Type |
---|
addressOf, completeFollowSym, getName, getSize, getUltimateType, member, toPrint, toPrint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Type type
Constructor Detail |
---|
private PointerType(String name, ByteOrder order, int size, Type type, IntegerType accessor)
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
void toPrint(PrintWriter writer, Location location, ByteBuffer memory, Format format, int indent)
Type
toPrint
in class IntegerType
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
- TODOprotected Type clone(IntegerType accessor)
IntegerTypeDecorator
clone
in class IntegerTypeDecorator
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |