|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc
Class NameAndTypeCPEntry

java.lang.Objectcom.chaoswg.xtc4y.classdesc.ConstantPoolEntry
com.chaoswg.xtc4y.classdesc.NameAndTypeCPEntry
- public final class NameAndTypeCPEntry
- extends ConstantPoolEntry
this class represent a NameAndType constant pool entry
| Field Summary | |
private java.lang.String |
descriptor
|
private short |
descriptorIndex
|
private java.lang.String |
name
|
private short |
nameIndex
|
static byte |
TAG
The tag identifying a NameAndType cp entry |
| Fields inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry |
|
| Constructor Summary | |
protected |
NameAndTypeCPEntry(java.io.DataInputStream dis)
Creates a NameAndTypeCPEntry and initializes it from a DataInputStream |
|
NameAndTypeCPEntry(java.lang.String name,
java.lang.String descriptor)
Creates a nameandtype cp entry |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks if another NameAndTypeCPEntry is equal to this. |
static java.lang.String |
extractReturnType(java.lang.String descriptor)
Extrace the return type from the descriptor |
java.lang.String |
getDescriptor()
|
java.lang.String |
getName()
|
java.lang.String |
getReturnType()
|
protected void |
resolve(ConstantPool cp)
Resolve the internal stored indices thorugh the Constantpool |
void |
setDescriptor(java.lang.String desc)
Set the descriptor |
void |
setName(java.lang.String name)
Set the name |
java.lang.String |
toString()
print in a readable way |
protected void |
writeCPEntry(java.io.DataOutputStream dos,
ConstantPool cp)
Write the type specific constant pool entry information onto a DataOutputStream |
| Methods inherited from class com.chaoswg.xtc4y.classdesc.ConstantPoolEntry |
getTag, getUsedCPSpace, write |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
TAG
public static final byte TAG
- The tag identifying a NameAndType cp entry
- See Also:
- Constant Field Values
name
private java.lang.String name
descriptor
private java.lang.String descriptor
nameIndex
private short nameIndex
descriptorIndex
private short descriptorIndex
| Constructor Detail |
NameAndTypeCPEntry
public NameAndTypeCPEntry(java.lang.String name, java.lang.String descriptor)
- Creates a nameandtype cp entry
NameAndTypeCPEntry
protected NameAndTypeCPEntry(java.io.DataInputStream dis) throws java.io.IOException
- Creates a NameAndTypeCPEntry and initializes it from a DataInputStream
| Method Detail |
resolve
protected void resolve(ConstantPool cp)
- Resolve the internal stored indices thorugh the Constantpool
- Specified by:
resolvein classConstantPoolEntry
writeCPEntry
protected void writeCPEntry(java.io.DataOutputStream dos, ConstantPool cp) throws java.io.IOException
- Write the type specific constant pool entry information onto a
DataOutputStream
- Specified by:
writeCPEntryin classConstantPoolEntry
getName
public java.lang.String getName()
getDescriptor
public java.lang.String getDescriptor()
setName
public void setName(java.lang.String name)
- Set the name
setDescriptor
public void setDescriptor(java.lang.String desc)
- Set the descriptor
equals
public boolean equals(java.lang.Object obj)
- Checks if another NameAndTypeCPEntry is equal to this.
toString
public java.lang.String toString()
- print in a readable way
getReturnType
public java.lang.String getReturnType()
extractReturnType
public static java.lang.String extractReturnType(java.lang.String descriptor)
- Extrace the return type from the descriptor
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC