frysk.value
Class ArithmeticType

java.lang.Object
  extended by frysk.value.Type
      extended by frysk.value.ArithmeticType
Direct Known Subclasses:
FloatingPointType, IntegerType

public abstract class ArithmeticType
extends Type

Type for a arithmetic.


Method Summary
 Value assign(Value var1, Value var2)
           
 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.
 ByteOrder order()
           
 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, completeFollowSym, completeMember, dereference, getALU, getALU, getALU, getALU, getALU, getALU, getName, getSize, getSliceType, getType, getUltimateType, index, member, pack, slice, toPrint, toPrintBrief
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Description copied from class: Type
For debugging and tracing; just dump the Type's name.

Overrides:
toString in class Type

order

public ByteOrder order()

assign

public Value assign(Value var1,
                    Value var2)

toPrint

public void toPrint(StringBuilder stringBuilder,
                    int indent)
Description copied from class: Type
Print this Type after indenting INDENT spaces.

Specified by:
toPrint in class Type
Parameters:
stringBuilder - TODO

createValue

public Value createValue(float val)
Create a new Value of THIS Type, initialized to VAL. This is a convenience method for creating a simple arithmetic type from a constant. In general code should be creating a Value using a Type and a Location.


createValue

public Value createValue(double val)
Create a new Value of THIS Type, initialized to VAL. This is a convenience method for creating a simple arithmetic type from a constant. In general code should be creating a Value using a Type and a Location.


createValue

public Value createValue(long val)
Create a new Value of THIS type, initialized to the long VAL. This is a convenience method for creating a simple arithmetic type from a constant. In general code should be creating a Value using a Type and a Location.