Class MethodRef
- java.lang.Object
-
- com.tonic.parser.constpool.structure.MethodRef
-
public class MethodRef extends Object
The mutable class-index and name-and-type-index pair behind a constant pool method reference.
-
-
Constructor Summary
Constructors Constructor Description MethodRef(int classIndex, int nameAndTypeIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClassIndex()intgetNameAndTypeIndex()voidsetClassIndex(int classIndex)voidsetNameAndTypeIndex(int nameAndTypeIndex)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)
- Parameters:
classIndex- new CONSTANT_Class index for the owner
-
setNameAndTypeIndex
public void setNameAndTypeIndex(int nameAndTypeIndex)
- Parameters:
nameAndTypeIndex- new CONSTANT_NameAndType index
-
-