Class MethodConstant.ForConstructor

All Implemented Interfaces:
MethodConstant.CanCache, StackManipulation
Enclosing class:
MethodConstant

protected static class MethodConstant.ForConstructor extends MethodConstant implements MethodConstant.CanCache
Creates a MethodConstant for loading a Constructor instance onto the operand stack.
  • Constructor Details

  • Method Details

    • methodName

      protected StackManipulation methodName()
      Description copied from class: MethodConstant
      Returns a stack manipulation that loads the method name onto the operand stack if this is required.
      Specified by:
      methodName in class MethodConstant
      Returns:
      A stack manipulation that loads the method name onto the operand stack if this is required.
    • accessorMethod

      protected MethodDescription.InDefinedShape accessorMethod()
      Description copied from class: MethodConstant
      Returns the method for loading a declared method or constructor onto the operand stack.
      Specified by:
      accessorMethod in class MethodConstant
      Returns:
      The method for loading a declared method or constructor onto the operand stack.
    • cached

      public StackManipulation cached()
      Returns this method constant as a cached version.
      Specified by:
      cached in interface MethodConstant.CanCache
      Returns:
      A cached version of the method constant that is represented by this instance.