|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjs.tinyvm.WritableDataWithOffset
js.tinyvm.ConstantValue
public class ConstantValue
This class represents a constant value of a basic type.
Constructor Summary | |
---|---|
ConstantValue(ClassRecord crec,
Binary aBinary)
|
|
ConstantValue(ConstantPool pool,
Constant constant,
Binary aBinary)
Constructor. |
Method Summary | |
---|---|
void |
dump(IByteWriter writer)
Dump. |
int |
getAlignment()
Returns the ideal data alignment for this data type. |
int |
getLength()
Get length in bytes of value. |
TinyVMType |
getType()
Get type of this value. |
void |
markUsed()
|
Object |
value()
Dereferenced value. |
Methods inherited from class js.tinyvm.WritableDataWithOffset |
---|
getOffset, initOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantValue(ConstantPool pool, Constant constant, Binary aBinary)
pool
- constant poolconstant
- constantaBinary
- public ConstantValue(ClassRecord crec, Binary aBinary)
Method Detail |
---|
public Object value()
public TinyVMType getType()
public int getLength()
public int getAlignment()
public void dump(IByteWriter writer) throws TinyVMException
writer
- byte writer
TinyVMException
public void markUsed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |