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, toString
public 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()
Constant
getTag
in class Constant
Constant.getTag()
public int getNameIndex()
public int getDescriptorIndex()
public String getName()
public String getDescriptor()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.