* Copyright (C) 2010 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
* This library is distributed under a modified BSD license. See the included
* RSTALanguageSupport.License.txt file for details.
package org.fife.rsta.ac.java.classreader.constantpool;
* Class corresponding to a <code>CONSTANT_Methodref_info</code> structure.
public class ConstantMethodrefInfo extends ConstantPoolInfo {
private int nameAndTypeIndex;
* @param nameAndTypeIndex
public ConstantMethodrefInfo(int classIndex, int nameAndTypeIndex) {
super(CONSTANT_Methodref);
this.classIndex = classIndex;
this.nameAndTypeIndex = nameAndTypeIndex;
public int getClassIndex() {
public int getNameAndTypeIndex() {
* Returns a string representation of this object. Useful for debugging.
* @return A string representation of this object.
public String toString() {
return "[ConstantMethodrefInfo: " +
"classIndex=" + getClassIndex() +
"; nameAndTypeIndex=" + getNameAndTypeIndex() +