Class MethodTypeConstant

java.lang.Object
classycle.classfile.Constant
classycle.classfile.MethodTypeConstant

public class MethodTypeConstant extends Constant
Constant representing a method type.
Author:
Franz-Josef Elmer
  • Constructor Details

    • MethodTypeConstant

      public MethodTypeConstant(Constant[] pool, int descriptorIndex)
      Creates an instance for the specified method reference.
      Parameters:
      pool - Constant pool. Needed to resolve references.
  • Method Details

    • getDescriptor

      public String getDescriptor()
      Returns the type or method descriptor.
    • toString

      public String toString()
      Returns constant type and descriptor.
      Overrides:
      toString in class Object