|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.ConstBasic
org.apache.jdo.impl.enhancer.classfile.ConstValue
org.apache.jdo.impl.enhancer.classfile.ConstString
Class representing a class specification in the constant pool ConstString strictly speaking is not a ConstantValue in the Java VM sense. However, the compiler generates ConstantValue attributes which refer to ConstString entries. This occurs for initialized static final String fields. I've changed ConstString to be a ConstValue for now as a simplification.
Field Summary | |
static int |
MyTag
|
private ConstUtf8 |
stringValue
|
private int |
stringValueIndex
|
Fields inherited from class org.apache.jdo.impl.enhancer.classfile.ConstBasic |
index |
Constructor Summary | |
(package private) |
ConstString(ConstUtf8 s)
|
(package private) |
ConstString(int sIndex)
|
Method Summary | |
java.lang.String |
descriptor()
Return the descriptor string for the constant type. |
(package private) void |
formatData(java.io.DataOutputStream b)
Write this Constant pool entry to the output stream |
boolean |
isEqual(java.util.Stack msg,
java.lang.Object obj)
Compares this instance with another for structural equality. |
(package private) static ConstString |
read(java.io.DataInputStream input)
|
(package private) void |
resolve(ConstantPool p)
Resolve integer index references to the actual constant pool entries that they represent. |
int |
tag()
Return the tag for this constant |
java.lang.String |
toString()
A printable representation |
ConstUtf8 |
value()
Return the utf8 string calue |
Methods inherited from class org.apache.jdo.impl.enhancer.classfile.ConstBasic |
getIndex, indexAsString, setIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MyTag
private ConstUtf8 stringValue
private int stringValueIndex
Constructor Detail |
ConstString(ConstUtf8 s)
ConstString(int sIndex)
Method Detail |
public int tag()
tag
in class ConstBasic
public ConstUtf8 value()
public java.lang.String descriptor()
descriptor
in class ConstValue
public java.lang.String toString()
public boolean isEqual(java.util.Stack msg, java.lang.Object obj)
isEqual
in class ConstBasic
void formatData(java.io.DataOutputStream b) throws java.io.IOException
ConstBasic
formatData
in class ConstBasic
java.io.IOException
static ConstString read(java.io.DataInputStream input) throws java.io.IOException
java.io.IOException
void resolve(ConstantPool p)
ConstBasic
resolve
in class ConstBasic
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |