|
|||||||||
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(org.apache.bcel.classfile.ConstantPool pool,
org.apache.bcel.classfile.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. |
int |
getTypeIndex()
Get type of this value. |
void |
markUsed()
|
java.lang.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(org.apache.bcel.classfile.ConstantPool pool, org.apache.bcel.classfile.Constant constant, Binary aBinary)
pool
- constant poolconstant
- constantaBinary
- public ConstantValue(ClassRecord crec, Binary aBinary)
Method Detail |
---|
public java.lang.Object value()
public int getTypeIndex()
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 |