Constructor and Description |
---|
ConstantNameAndType(ConstantNameAndType c)
Initialize from another object.
|
ConstantNameAndType(int name_index,
int signature_index) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
void |
dump(DataOutputStream file)
Dump name and signature index to file stream in binary format.
|
String |
getName(ConstantPool cp) |
int |
getNameIndex() |
String |
getSignature(ConstantPool cp) |
int |
getSignatureIndex() |
void |
setNameIndex(int name_index) |
void |
setSignatureIndex(int signature_index) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparator
public ConstantNameAndType(ConstantNameAndType c)
public ConstantNameAndType(int name_index, int signature_index)
name_index
- Name of field/methodsignature_index
- and its signaturepublic void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump
in class Constant
file
- Output file streamIOException
public final int getNameIndex()
public final String getName(ConstantPool cp)
public final int getSignatureIndex()
public final String getSignature(ConstantPool cp)
public final void setNameIndex(int name_index)
name_index
- the name index of this constantpublic final void setSignatureIndex(int signature_index)
signature_index
- the signature index in the constant pool of this typeCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.