public class NameAndTypeConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
int |
u2descriptorIndex |
int |
u2nameIndex |
visitorInfo| Constructor and Description |
|---|
NameAndTypeConstant()
Creates an uninitialized NameAndTypeConstant.
|
NameAndTypeConstant(int u2nameIndex,
int u2descriptorIndex)
Creates a new NameAndTypeConstant with the given name and type indices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
protected int |
getDescriptorIndex()
Returns the descriptor index.
|
String |
getName(Clazz clazz)
Returns the name.
|
protected int |
getNameIndex()
Returns the name index.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
String |
getType(Clazz clazz)
Returns the type.
|
protected void |
setDescriptorIndex(int index)
Sets the descriptor index.
|
protected void |
setNameIndex(int index)
Sets the name index.
|
getVisitorInfo, setVisitorInfopublic NameAndTypeConstant()
public NameAndTypeConstant(int u2nameIndex,
int u2descriptorIndex)
u2nameIndex - the index of the name in the constant pool.u2descriptorIndex - the index of the descriptor in the constant
pool.protected int getNameIndex()
protected void setNameIndex(int index)
protected int getDescriptorIndex()
protected void setDescriptorIndex(int index)
public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2015. All Rights Reserved.