Class Closure


  • public final class Closure
    extends java.lang.Object
    Represents the runtime state of a dynamically generated method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object[] constants
      Represents the non-trivial constants and locally executable expressions that are referenced by a dynamically generated method.
      java.lang.Object[] locals
      Represents the hoisted local variables from the parent context.
    • Constructor Summary

      Constructors 
      Constructor Description
      Closure​(java.lang.Object[] constants, java.lang.Object[] locals)
      Creates an object to hold state of a dynamically generated method.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • constants

        public final java.lang.Object[] constants
        Represents the non-trivial constants and locally executable expressions that are referenced by a dynamically generated method.
      • locals

        public final java.lang.Object[] locals
        Represents the hoisted local variables from the parent context.
    • Constructor Detail

      • Closure

        public Closure​(java.lang.Object[] constants,
                       java.lang.Object[] locals)
        Creates an object to hold state of a dynamically generated method.
        Parameters:
        constants - The constant values used by the method.
        locals - The hoisted local variables from the parent context.