Constant
and represents a reference to the name and signature of a
field or method.
Constant
Modifier and Type | Field and Description |
---|---|
private int | |
private int |
Access | Constructor and Description |
---|---|
public | |
pack-priv | |
public | ConstantNameAndType(final int
Name of field/method nameIndex, final int and its signature signatureIndex)
|
Modifier and Type | Method and Description |
---|---|
public void | accept(final Visitor
Visitor object v)Implements abstract com. Implements com. |
public void | dump(final DataOutputStream
Output file stream file)Implements abstract com. |
public String | |
public int | |
public String | |
public int | |
public void | |
public void | |
public String | Returns: String representationOverrides com. |
nameIndex | back to summary |
---|---|
private int nameIndex |
signatureIndex | back to summary |
---|---|
private int signatureIndex |
ConstantNameAndType | back to summary |
---|---|
public ConstantNameAndType(final ConstantNameAndType c) Initialize from another object.
|
ConstantNameAndType | back to summary |
---|---|
pack-priv ConstantNameAndType(final DataInput file) throws IOException Initialize instance from file data.
|
ConstantNameAndType | back to summary |
---|---|
public ConstantNameAndType(final int nameIndex, final int signatureIndex)
|
accept | back to summary |
---|---|
public void accept(final Visitor v) Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. |
dump | back to summary |
---|---|
public void dump(final DataOutputStream file) throws IOException Implements abstract com. Dump name and signature index to file stream in binary format.
|
getName | back to summary |
---|---|
public String getName(final ConstantPool cp)
|
getNameIndex | back to summary |
---|---|
public int getNameIndex()
|
getSignature | back to summary |
---|---|
public String getSignature(final ConstantPool cp)
|
getSignatureIndex | back to summary |
---|---|
public int getSignatureIndex()
|
setNameIndex | back to summary |
---|---|
public void setNameIndex(final int nameIndex)
|
setSignatureIndex | back to summary |
---|---|
public void setSignatureIndex(final int signatureIndex)
|
toString | back to summary |
---|---|
public String toString() Overrides com. Doc from java. Returns a string representation of the object. |