Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.depend.constantpool

public Class MethodRefCPInfo

extends ConstantPoolEntry
Class Inheritance
Imports
java.io.DataInputStream, .IOException

A MethodRef CP Info

Field Summary

Modifier and TypeField and Description
private int
classIndex

The index into the constant pool which defines the class of this method.

private String
methodClassName

the name of the class defining this method

private String
methodName

the name of the method

private String
methodType

the method's type descriptor

private int
nameAndTypeIndex

the index into the constant pool which defined the name and type signature of the method

Inherited from org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry:
CONSTANT_CLASSCONSTANT_DOUBLECONSTANT_FIELDREFCONSTANT_FLOATCONSTANT_INTEGERCONSTANT_INTERFACEMETHODREFCONSTANT_INVOKEDYNAMICCONSTANT_LONGCONSTANT_METHODHANDLECONSTANT_METHODREFCONSTANT_METHODTYPECONSTANT_MODULEINFOCONSTANT_NAMEANDTYPECONSTANT_PACKAGEINFOCONSTANT_STRINGCONSTANT_UTF8

Constructor Summary

AccessConstructor and Description
public
MethodRefCPInfo()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the class defining this method
getMethodClassName
()

Get the name of the class defining the method

public String

Returns:

the name of the method.
getMethodName
()

Get the name of the method.

public String

Returns:

the type signature of the method.
getMethodType
()

Get the type signature of the method.

public void
read(DataInputStream
the DataInputStream which contains the constant pool entry to be read.
cpStream
)

Implements abstract org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.read.

read a constant pool entry from a class stream.
public void
resolve(ConstantPool
the constant pool of which this entry is a member and against which this entry is to be resolved.
constantPool
)

Overrides org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.resolve.

Resolve this constant pool entry with respect to its dependents in the constant pool.
public String

Returns:

the string representation of this constant pool entry.
toString
()

Overrides java.lang.Object.toString.

Print a readable version of the constant pool entry.
Inherited from org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry:
getNumEntriesgetTagisResolvedreadEntry

Field Detail

classIndexback to summary
private int classIndex

The index into the constant pool which defines the class of this method.

methodClassNameback to summary
private String methodClassName

the name of the class defining this method

methodNameback to summary
private String methodName

the name of the method

methodTypeback to summary
private String methodType

the method's type descriptor

nameAndTypeIndexback to summary
private int nameAndTypeIndex

the index into the constant pool which defined the name and type signature of the method

Constructor Detail

MethodRefCPInfoback to summary
public MethodRefCPInfo()

Constructor.

Method Detail

getMethodClassNameback to summary
public String getMethodClassName()

Get the name of the class defining the method

Returns:String

the name of the class defining this method

getMethodNameback to summary
public String getMethodName()

Get the name of the method.

Returns:String

the name of the method.

getMethodTypeback to summary
public String getMethodType()

Get the type signature of the method.

Returns:String

the type signature of the method.

readback to summary
public void read(DataInputStream cpStream) throws IOException

Implements abstract org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.read.

read a constant pool entry from a class stream.

Parameters
cpStream:DataInputStream

the DataInputStream which contains the constant pool entry to be read.

Annotations
@Override
Exceptions
IOException:
if there is a problem reading the entry from the stream.
resolveback to summary
public void resolve(ConstantPool constantPool)

Overrides org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry.resolve.

Resolve this constant pool entry with respect to its dependents in the constant pool.

Parameters
constantPool:ConstantPool

the constant pool of which this entry is a member and against which this entry is to be resolved.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Print a readable version of the constant pool entry.

Returns:String

the string representation of this constant pool entry.

Annotations
@Override