public class ConstantNameAndType extends Constant
constantPool| Constructor and Description |
|---|
ConstantNameAndType(Constant[] constantPool,
DataInput inputStream)
constructs a new ConstantNameAndType
|
ConstantNameAndType(Constant[] constantPool,
int nameIndex,
int descriptorIndex)
constructs a new ConstantNameAndType
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescriptor()
returns the type of this constant
|
int |
getDescriptorIndex()
returns the descriptorIndex
|
String |
getName()
returns the name of this constant
|
int |
getNameIndex()
returns the nameindex
|
int |
getTag()
returns the tag of the constant
|
String |
toString() |
readConstant, toStringpublic ConstantNameAndType(Constant[] constantPool, DataInput inputStream) throws IOException
constantPool - the constantPool it is part ofinputStream - the inputstream to read fromIOException - on failurepublic ConstantNameAndType(Constant[] constantPool, int nameIndex, int descriptorIndex)
constantPool - the constantPool it is part ofnameIndex - the nameIndexdescriptorIndex - descriptorIndexpublic int getTag()
ConstantgetTag in class ConstantConstant.getTag()public int getNameIndex()
public int getDescriptorIndex()
public String getName()
public String getDescriptor()
public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.