public class NameAndTypeConstant extends Constant
| Constructor and Description |
|---|
NameAndTypeConstant(Constant[] pool,
int nameIndex,
int descriptorIndex)
Creates an instance for the specified name and type or method descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescriptor()
Returns the type or method descriptor.
|
String |
getName()
Returns the name.
|
String |
toString()
Returns constant type, name, and descriptor.
|
extractConstantPool, getConstantpublic 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.Copyright © 2014. All rights reserved.