|
||||||||||
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
public abstract class ArithmeticType
Type for a arithmetic.
Field Summary | |
---|---|
private ByteOrder |
order
|
Constructor Summary | |
---|---|
protected |
ArithmeticType(String name,
ByteOrder order,
int size)
|
Method Summary | |
---|---|
Value |
assign(Value var1,
Value var2)
|
(package private) abstract BigFloatingPoint |
bigFloatingPointValue(Location location)
Return the arthmetic type converted to a BigFloatingPoint, this may involve truncation and/or rounding. |
(package private) abstract BigInteger |
bigIntegerValue(Location location)
Return the arthmetic type converted to a BigInteger, this may involve truncation and/or rounding. |
(package private) Value |
createValue(BigFloatingPoint val)
Create a new Value of THIS Type, initialized to VAL. |
(package private) Value |
createValue(BigInteger val)
Create a new Value of THIS Type, initialized to VAL. |
Value |
createValue(double val)
Create a new Value of THIS Type, initialized to VAL. |
Value |
createValue(float val)
Create a new Value of THIS Type, initialized to VAL. |
Value |
createValue(long val)
Create a new Value of THIS type, initialized to the long VAL. |
(package private) abstract BigFloatingPoint |
getBigFloatingPoint(Location location)
Return the entire location, interpreting the raw bytes as a floating-point value. |
(package private) abstract BigInteger |
getBigInteger(Location location)
Return the entire location, interpreting it as a big integer. |
ByteOrder |
order()
|
(package private) abstract void |
putBigFloatingPoint(Location location,
BigFloatingPoint val)
Re-write the entire location with the big floating point value. |
(package private) abstract void |
putBigInteger(Location location,
BigInteger val)
Re-write the entire location with the big integer value. |
void |
toPrint(StringBuilder stringBuilder,
int indent)
Print this Type after indenting INDENT spaces. |
String |
toString()
For debugging and tracing; just dump the Type's name. |
Methods inherited from class frysk.value.Type |
---|
addressOf, assign, completeFollowSym, completeMember, dereference, getALU, getALU, getALU, getALU, getALU, getALU, getName, getSize, getSliceType, getType, getUltimateType, index, member, pack, slice, toPrint, toPrint, toPrint, toPrintBrief |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final ByteOrder order
Constructor Detail |
---|
protected ArithmeticType(String name, ByteOrder order, int size)
Method Detail |
---|
public String toString()
Type
toString
in class Type
public ByteOrder order()
public Value assign(Value var1, Value var2)
public void toPrint(StringBuilder stringBuilder, int indent)
Type
toPrint
in class Type
stringBuilder
- TODOpublic Value createValue(float val)
public Value createValue(double val)
Value createValue(BigInteger val)
Value createValue(BigFloatingPoint val)
public Value createValue(long val)
abstract BigInteger getBigInteger(Location location)
abstract BigFloatingPoint getBigFloatingPoint(Location location)
abstract BigFloatingPoint bigFloatingPointValue(Location location)
abstract void putBigInteger(Location location, BigInteger val)
abstract void putBigFloatingPoint(Location location, BigFloatingPoint val)
abstract BigInteger bigIntegerValue(Location location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |