public class ConstantInterfaceMethodref extends Constant
constantPool
Constructor and Description |
---|
ConstantInterfaceMethodref(Constant[] constantPool,
DataInput inputStream)
constructs a new ConstantInterfaceMethodref
|
ConstantInterfaceMethodref(Constant[] constantPool,
int classIndex,
int nameAndTypeIndex)
constructs a new ConstantInterfaceMethodref
|
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, toString
public ConstantInterfaceMethodref(Constant[] constantPool, DataInput inputStream) throws IOException
constantPool
- the constantPool it is part ofinputStream
- the inputstream to read fromIOException
- on failurepublic ConstantInterfaceMethodref(Constant[] constantPool, int classIndex, int nameAndTypeIndex)
constantPool
- the constantPool it is part ofclassIndex
- the classIndexnameAndTypeIndex
- the NameAndTypeIndexpublic int getTag()
Constant
getTag
in class Constant
Constant.getTag()
public int getClassIndex()
public int getNameAndTypeIndex()
public ConstantClass getConstantClass()
public ConstantNameAndType getConstantNameAndType()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.