Top Description Fields Constructors Methods
org.aspectj.apache.bcel.generic

public abstract Class FieldOrMethod

extends InstructionCP
Class Inheritance
Known Direct Subclasses
org.aspectj.apache.bcel.generic.InvokeInstruction, org.aspectj.apache.bcel.generic.FieldInstruction
Imports
org.aspectj.apache.bcel.classfile.Constant, .ConstantCP, .ConstantNameAndType, .ConstantPool, .ConstantUtf8

Super class for InvokeInstruction and FieldInstruction, since they have some methods in common!
Author
M. Dahm
Version
$Id: FieldOrMethod.java,v 1.8 2009/10/05 17:35:36 aclement Exp $

Field Summary

Modifier and TypeField and Description
private String
protected String
protected String
Inherited from org.aspectj.apache.bcel.generic.InstructionCP:
index

Constructor Summary

AccessConstructor and Description
protected
FieldOrMethod(short opcode, int index)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

name of the referenced class/interface
getClassName
(ConstantPool cp)

public ObjectType

Returns:

type of the referenced class/interface
getClassType
(ConstantPool cpg)

public ObjectType

Returns:

type of the referenced class/interface
getLoadClassType
(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.getLoadClassType.

public String

Returns:

name of referenced method/field.
getName
(ConstantPool cp)

public String

Returns:

signature of referenced method/field.
getSignature
(ConstantPool cp)

Inherited from org.aspectj.apache.bcel.generic.InstructionCP:
dumpequalsgetIndexgetLengthgetTypegetValuehashCodesetIndextoStringtoString

Field Detail

classnameback to summary
private String classname
nameback to summary
protected String name
signatureback to summary
protected String signature

Constructor Detail

FieldOrMethodback to summary
protected FieldOrMethod(short opcode, int index)

Method Detail

getClassNameback to summary
public String getClassName(ConstantPool cp)
Returns:String

name of the referenced class/interface

getClassTypeback to summary
public ObjectType getClassType(ConstantPool cpg)
Returns:ObjectType

type of the referenced class/interface

getLoadClassTypeback to summary
public ObjectType getLoadClassType(ConstantPool cpg)

Overrides org.aspectj.apache.bcel.generic.Instruction.getLoadClassType.

Returns:ObjectType

type of the referenced class/interface

Annotations
@Override
getNameback to summary
public String getName(ConstantPool cp)
Returns:String

name of referenced method/field.

getSignatureback to summary
public String getSignature(ConstantPool cp)
Returns:String

signature of referenced method/field.