Class CstInterfaceMethodRef

All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>

public final class CstInterfaceMethodRef extends CstBaseMethodRef
Constants of type CONSTANT_InterfaceMethodref_info.
  • Constructor Details

    • CstInterfaceMethodRef

      public CstInterfaceMethodRef(CstType definingClass, CstNat nat)
      Constructs an instance.
      Parameters:
      definingClass - non-null; the type of the defining class
      nat - non-null; the name-and-type
  • Method Details

    • typeName

      public String typeName()
      Returns the human name for the particular type of constant this instance is.
      Specified by:
      typeName in class Constant
      Returns:
      non-null; the name
    • toMethodRef

      public CstMethodRef toMethodRef()
      Gets a normal (non-interface) CstMethodRef that corresponds to this instance.
      Returns:
      non-null; an appropriate instance