blob: 76113c32ff8a506661270e4f19e52fd04c350f5f [file] [log] [blame]
/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
*
* This program and the accompanying materials are made available under
* the terms of the Common Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/cpl-v10.html
*
* $Id: CONSTANT_InterfaceMethodref_info.java,v 1.1.1.1 2004/05/09 16:57:49 vlad_r Exp $
*/
package com.vladium.jcd.cls.constant;
import java.io.IOException;
import com.vladium.jcd.lib.UDataInputStream;
// ----------------------------------------------------------------------------
/**
* This structure is used in the constant pool to represent dynamic references
* to interface methods. The class_index item of a CONSTANT_InterfaceMethodref_info
* structure must be an interface type that declares the given method.
*
* @see CONSTANT_ref_info
* @see CONSTANT_Fieldref_info
* @see CONSTANT_Methodref_info
*
* @author (C) 2001, Vlad Roubtsov
*/
public
final class CONSTANT_InterfaceMethodref_info extends CONSTANT_ref_info
{
// public: ................................................................
public static final byte TAG = 11;
public CONSTANT_InterfaceMethodref_info (final int class_index, final int name_and_type_index)
{
super (class_index, name_and_type_index);
}
public final byte tag ()
{
return TAG;
}
// Visitor:
public Object accept (final ICONSTANTVisitor visitor, final Object ctx)
{
return visitor.visit (this, ctx);
}
public String toString ()
{
return "CONSTANT_InterfaceMethodref: [class_index = " + m_class_index + ", name_and_type_index = " + m_name_and_type_index + ']';
}
// Cloneable: inherited clone() is Ok
// protected: .............................................................
protected CONSTANT_InterfaceMethodref_info (final UDataInputStream bytes) throws IOException
{
super (bytes);
}
// package: ...............................................................
// private: ...............................................................
} // end of class
// ----------------------------------------------------------------------------