public class ConstantMethodref extends Constant
constantPool| Constructor and Description |
|---|
ConstantMethodref(Constant[] constantPool,
DataInput inputStream)
constructs a new ConstantMethodref
|
ConstantMethodref(Constant[] constantPool,
int classIndex,
int nameAndTypeIndex)
constructs a new ConstantMethodref
|
| Modifier and Type | Method and Description |
|---|---|
int |
getClassIndex()
returns the classindex
|
ConstantClass |
getConstantClass()
returns the constantClass of this constant
|
ConstantNameAndType |
getConstantNameAndType()
returns the nameAndType constant
|
int |
getNameAndTypeIndex()
returns the nameAndTypeIndex
|
int |
getTag()
returns the tag of the constant
|
String |
toString() |
readConstant, toStringpublic ConstantMethodref(Constant[] constantPool, DataInput inputStream) throws IOException
constantPool - the constantPool it is part ofinputStream - the inputstream to read fromIOException - on failurepublic ConstantMethodref(Constant[] constantPool, int classIndex, int nameAndTypeIndex)
constantPool - the constantPool it is part ofclassIndex - the classIndexnameAndTypeIndex - the NameAndTypeIndexpublic int getTag()
ConstantgetTag in class ConstantConstant.getTag()public int getClassIndex()
public int getNameAndTypeIndex()
public ConstantClass getConstantClass()
public ConstantNameAndType getConstantNameAndType()
public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.