Class NameSignatureInstruction

All Implemented Interfaces:
Cloneable, IndexedInstruction, TypedInstruction

public abstract class NameSignatureInstruction extends CPInstruction
Super class for FieldOrMethod and INVOKEDYNAMIC, since they both have names and signatures
Since:
6.0
  • Constructor Details

    • NameSignatureInstruction

      Constructs a NameSignatureInstruction.
    • NameSignatureInstruction

      public NameSignatureInstruction(short opcode, int index)
      Constructs a NameSignatureInstruction.
      Parameters:
      opcode - The opcode.
      index - index into constant pool.
  • Method Details

    • getName

      Gets the name of the referenced method or field.
      Parameters:
      cpg - constant pool generator.
      Returns:
      name of referenced method/field.
    • getNameAndType

      Gets the name and type constant.
      Parameters:
      cpg - constant pool generator.
      Returns:
      The name and type constant.
    • getSignature

      Gets the signature of the referenced method or field.
      Parameters:
      cpg - constant pool generator.
      Returns:
      signature of referenced method/field.