Constant
and represents a reference to a (external) class.
Constant
Modifier and Type | Field and Description |
---|---|
private int |
Access | Constructor and Description |
---|---|
public | |
pack-priv | |
public |
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 Object | Returns: String objectImplements com. |
public int | |
public void | |
public String | Returns: String representation.Overrides com. |
nameIndex | back to summary |
---|---|
private int nameIndex |
ConstantClass | back to summary |
---|---|
public ConstantClass(final ConstantClass c) Initialize from another object.
|
ConstantClass | back to summary |
---|---|
pack-priv ConstantClass(final DataInput dataInput) throws IOException Constructs an instance from file data.
|
ConstantClass | back to summary |
---|---|
public ConstantClass(final int nameIndex)
|
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. Dumps constant class to file stream in binary format.
|
getBytes | back to summary |
---|---|
public String getBytes(final ConstantPool cp)
|
getConstantValue | back to summary |
---|---|
public Object getConstantValue(final ConstantPool cp) Implements com. |
getNameIndex | back to summary |
---|---|
public int getNameIndex()
|
setNameIndex | back to summary |
---|---|
public void setNameIndex(final int nameIndex)
|
toString | back to summary |
---|---|
public String toString() Overrides com. Doc from java. Returns a string representation of the object. |