Class InterfaceRef
- java.lang.Object
-
- com.tonic.parser.constpool.structure.InterfaceRef
-
public class InterfaceRef extends Object
Represents an Interface Method Reference in the constant pool.
-
-
Constructor Summary
Constructors Constructor Description InterfaceRef(int classIndex, int nameAndTypeIndex)Creates an interface method reference from its two constant-pool indices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClassIndex()intgetNameAndTypeIndex()voidsetClassIndex(int classIndex)Repoints this reference at a different owner class.StringtoString()
-
-
-
Method Detail
-
getClassIndex
public int getClassIndex()
- Returns:
- the class index
-
getNameAndTypeIndex
public int getNameAndTypeIndex()
- Returns:
- the name and type index
-
setClassIndex
public void setClassIndex(int classIndex)
Repoints this reference at a different owner class.- Parameters:
classIndex- the new CONSTANT_Class index
-
-