|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassycle.classfile.Constant
classycle.classfile.NameAndTypeConstant
public class NameAndTypeConstant
Constant holding a name and a type or method descriptor.
| Constructor Summary | |
|---|---|
NameAndTypeConstant(Constant[] pool,
int nameIndex,
int descriptorIndex)
Creates an instance for the specified name and type or method descriptor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescriptor()
Returns the type or method descriptor. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
toString()
Returns constant type, name, and descriptor. |
| Methods inherited from class classycle.classfile.Constant |
|---|
extractConstantPool, getConstant |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NameAndTypeConstant(Constant[] pool,
int nameIndex,
int descriptorIndex)
pool - Constant pool. Needed to resolve references.nameIndex - Index of the name in the pool.descriptorIndex - Index of the type or method descriptor in the pool.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getDescriptor()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||