|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.constant.Constant
proguard.classfile.constant.NameAndTypeConstant
public class NameAndTypeConstant
This Constant represents a name and type constant in the constant pool.
| Field Summary | |
|---|---|
int |
u2descriptorIndex
|
int |
u2nameIndex
|
| Fields inherited from class proguard.classfile.constant.Constant |
|---|
visitorInfo |
| Constructor Summary | |
|---|---|
NameAndTypeConstant()
Creates an uninitialized NameAndTypeConstant. |
|
NameAndTypeConstant(int u2nameIndex,
int u2descriptorIndex)
Creates a new NameAndTypeConstant with the given name and type indices. |
|
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor. |
protected int |
getDescriptorIndex()
Returns the descriptor index. |
java.lang.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. |
java.lang.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. |
| Methods inherited from class proguard.classfile.constant.Constant |
|---|
getVisitorInfo, setVisitorInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int u2nameIndex
public int u2descriptorIndex
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
protected int getNameIndex()
protected void setNameIndex(int index)
protected int getDescriptorIndex()
protected void setDescriptorIndex(int index)
public java.lang.String getName(Clazz clazz)
public java.lang.String getType(Clazz clazz)
public int getTag()
Constant
getTag in class Constant
public void accept(Clazz clazz,
ConstantVisitor constantVisitor)
Constant
accept in class Constant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||