org.apache.bcel.generic
Class FieldOrMethod
- Cloneable, IndexedInstruction, LoadClass, Serializable, TypedInstruction
public abstract class FieldOrMethod
Super class for InvokeInstruction and FieldInstruction, since they have
some methods in common!
Version:
- M. Dahm
accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString |
FieldOrMethod
protected FieldOrMethod(short opcode,
int index)index - to constant pool
getClassName
public String getClassName(ConstantPoolGen cpg)
- name of the referenced class/interface
getName
public String getName(ConstantPoolGen cpg)
- name of referenced method/field.
getSignature
public String getSignature(ConstantPoolGen cpg)
- signature of referenced method/field.