|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javar.attributes.Attribute
|
+--javar.attributes.ConstantValue
This class represents an attribute that is unknow to the system.
| Field Summary |
| Fields inherited from class javar.attributes.Attribute |
nameIndex, pool |
| Constructor Summary | |
ConstantValue(ConstantPool p,
long n)
Constructor |
|
| Method Summary | |
ConstantPoolEntry |
getConstantValueEntry()
This will get the constant value pool entry. |
long |
getConstantValueIndex()
This will get the constant value pool index. |
void |
load(DataInputStream in)
This will load in the data for the attribute |
void |
setConstantValueIndex(long index)
This will set the index to the constant value in the pool. |
byte[] |
toBytes()
This will take this attribute and convert it into an array of bytes that can be stored in a classfile. |
| Methods inherited from class javar.attributes.Attribute |
getName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstantValue(ConstantPool p,
long n)
| Method Detail |
public void setConstantValueIndex(long index)
index - The pool index for this constant value.public long getConstantValueIndex()
public ConstantPoolEntry getConstantValueEntry()
public byte[] toBytes()
toBytes in class Attributepublic void load(DataInputStream in)
load in class Attribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||