js.tinyvm
Class ConstantRecord

java.lang.Object
  extended by js.tinyvm.ConstantRecord
All Implemented Interfaces:
WritableData

public class ConstantRecord
extends java.lang.Object
implements WritableData


Constructor Summary
ConstantRecord(ClassRecord crec, Binary aBinary)
           
ConstantRecord(org.apache.bcel.classfile.ConstantPool pool, org.apache.bcel.classfile.Constant constant, Binary aBinary)
          Constructor.
 
Method Summary
 ConstantValue constantValue()
          Get dereferenced value.
 void dump(IByteWriter writer)
          Dump.
 boolean equals(java.lang.Object object)
          Equals based on equality of referenced value.
 int getLength()
          Get length of this record.
 int hashCode()
          hashCode based on referenced value.
 void markUsed()
           
 boolean used()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantRecord

public ConstantRecord(org.apache.bcel.classfile.ConstantPool pool,
                      org.apache.bcel.classfile.Constant constant,
                      Binary aBinary)
Constructor.

Parameters:
pool - constant pool
constant - constant
aBinary -

ConstantRecord

public ConstantRecord(ClassRecord crec,
                      Binary aBinary)
Method Detail

constantValue

public ConstantValue constantValue()
Get dereferenced value.


equals

public boolean equals(java.lang.Object object)
Equals based on equality of referenced value.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
hashCode based on referenced value.

Overrides:
hashCode in class java.lang.Object

getLength

public int getLength()
Get length of this record.

Specified by:
getLength in interface WritableData

dump

public void dump(IByteWriter writer)
          throws TinyVMException
Dump.

Specified by:
dump in interface WritableData
Parameters:
writer - byte writer
Throws:
TinyVMException

markUsed

public void markUsed()

used

public boolean used()