com.vladium.jcd.cls.constant
Class CONSTANT_Methodref_info

java.lang.Object
  extended bycom.vladium.jcd.cls.constant.CONSTANT_info
      extended bycom.vladium.jcd.cls.constant.CONSTANT_ref_info
          extended bycom.vladium.jcd.cls.constant.CONSTANT_Methodref_info
All Implemented Interfaces:
java.lang.Cloneable, IClassFormatOutput

public final class CONSTANT_Methodref_info
extends CONSTANT_ref_info

This structure is used in the constant pool to represent dynamic references to class methods. The class_index item of a CONSTANT_Fieldref_info or a CONSTANT_Methodref_info structure must be a class type, not an interface type.

Author:
(C) 2001, Vlad Roubtsov
See Also:
CONSTANT_ref_info, CONSTANT_Fieldref_info, CONSTANT_InterfaceMethodref_info

Field Summary
static byte TAG
           
 
Fields inherited from class com.vladium.jcd.cls.constant.CONSTANT_ref_info
m_class_index, m_name_and_type_index
 
Constructor Summary
  CONSTANT_Methodref_info(int class_index, int name_and_type_index)
           
protected CONSTANT_Methodref_info(UDataInputStream bytes)
           
 
Method Summary
 java.lang.Object accept(ICONSTANTVisitor visitor, java.lang.Object ctx)
           
 byte tag()
          Returns the tag byte for this CONSTANT type [this data is static class data].
 java.lang.String toString()
           
 
Methods inherited from class com.vladium.jcd.cls.constant.CONSTANT_ref_info
writeInClassFormat
 
Methods inherited from class com.vladium.jcd.cls.constant.CONSTANT_info
clone, new_CONSTANT_info, tagToString, width
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG

public static final byte TAG
See Also:
Constant Field Values
Constructor Detail

CONSTANT_Methodref_info

public CONSTANT_Methodref_info(int class_index,
                               int name_and_type_index)

CONSTANT_Methodref_info

protected CONSTANT_Methodref_info(UDataInputStream bytes)
                           throws java.io.IOException
Method Detail

tag

public final byte tag()
Description copied from class: CONSTANT_info
Returns the tag byte for this CONSTANT type [this data is static class data].

Specified by:
tag in class CONSTANT_info

accept

public java.lang.Object accept(ICONSTANTVisitor visitor,
                               java.lang.Object ctx)
Specified by:
accept in class CONSTANT_info

toString

public java.lang.String toString()
Specified by:
toString in class CONSTANT_info