|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.value.Value
public class Value
Stores the type and location of a variable
Field Summary | |
---|---|
private Location |
location
|
private Type |
type
|
Constructor Summary | |
---|---|
Value(Type type)
Create a scratch TYPE value. |
|
Value(Type type,
Location location)
Create Value with TYPE and LOCATION. |
Method Summary | |
---|---|
BigFloatingPoint |
asBigFloatingPoint()
|
BigInteger |
asBigInteger()
|
long |
asLong()
Quick and dirty conversion of the value into a long. |
Value |
assign(Value value)
Assign VALUE to THIS; perform type conversion if necessary. |
double |
doubleValue()
Quick and dirty conversion to a floating-point. |
Location |
getLocation()
Return the Value's Location. |
Type |
getType()
Return the Value's Type. |
String |
toPrint()
Return this as a printable string using the default formatting. |
String |
toPrint(Format format)
Return this as a printable string using the specified FORMAT. |
String |
toPrint(Format format,
ByteBuffer memory)
Return this as a printable string; if need be and when non-NULL, use MEMORY for dereferencing pointers. |
void |
toPrint(PrintWriter writer,
ByteBuffer memory,
Format format,
int indent)
Write THIS value to WRITER, formatted according to FORMAT after indenting INDENT spaces. |
void |
toPrint(PrintWriter writer,
Format format)
Write THIS value to WRITER; using the specified format. |
String |
toString()
Dump this object into a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Type type
private final Location location
Constructor Detail |
---|
public Value(Type type, Location location)
public Value(Type type)
Method Detail |
---|
public Location getLocation()
public Type getType()
public Value assign(Value value)
public long asLong()
public BigInteger asBigInteger()
public double doubleValue()
public BigFloatingPoint asBigFloatingPoint()
public String toString()
toString
in class Object
public String toPrint(Format format, ByteBuffer memory)
public String toPrint(Format format)
public String toPrint()
public void toPrint(PrintWriter writer, ByteBuffer memory, Format format, int indent)
public void toPrint(PrintWriter writer, Format format)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |