Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public abstract Class NameSignatureInstruction

extends CPInstruction
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.classfile.ConstantCP, .ConstantNameAndType, .ConstantPool, .ConstantUtf8

Super class for FieldOrMethod and INVOKEDYNAMIC, since they both have names and signatures
Since
6.0

Field Summary

Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
index

Constructor Summary

AccessConstructor and Description
public
public
NameSignatureInstruction(final short opcode, final int index)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

name of referenced method/field.
getName
(final ConstantPoolGen cpg)

public ConstantNameAndType
public String

Returns:

signature of referenced method/field.
getSignature
(final ConstantPoolGen cpg)

Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
dumpgetIndexgetTypeinitFromFilesetIndextoStringtoString

Constructor Detail

NameSignatureInstructionback to summary
public NameSignatureInstruction()
NameSignatureInstructionback to summary
public NameSignatureInstruction(final short opcode, final int index)

Method Detail

getNameback to summary
public String getName(final ConstantPoolGen cpg)
Returns:String

name of referenced method/field.

getNameAndTypeback to summary
public ConstantNameAndType getNameAndType(final ConstantPoolGen cpg)
getSignatureback to summary
public String getSignature(final ConstantPoolGen cpg)
Returns:String

signature of referenced method/field.