Class ReferenceFrame


  • class ReferenceFrame
    extends Frame
    Pass-by-reference frame.
    • Field Summary

      • Fields inherited from class org.apache.commons.jexl3.internal.Frame

        stack
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceFrame​(Scope s, java.lang.Object[] r, int c)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.Object capture​(int s, boolean lexical)
      Captures a value.
      (package private) java.lang.Object get​(int s)
      Gets a value.
      (package private) Frame newFrame​(Scope s, java.lang.Object[] r, int c)
      Creates a new from of this frame"s class.
      (package private) void set​(int r, java.lang.Object value)
      Sets a value.
      • Methods inherited from class java.lang.Object

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

      • ReferenceFrame

        ReferenceFrame​(Scope s,
                       java.lang.Object[] r,
                       int c)
    • Method Detail

      • newFrame

        Frame newFrame​(Scope s,
                       java.lang.Object[] r,
                       int c)
        Description copied from class: Frame
        Creates a new from of this frame"s class.
        Overrides:
        newFrame in class Frame
        Parameters:
        s - the scope
        r - the arguments
        c - the number of curried parameters
        Returns:
        a new instance of frame
      • capture

        java.lang.Object capture​(int s,
                                 boolean lexical)
        Description copied from class: Frame
        Captures a value.
        Overrides:
        capture in class Frame
        Parameters:
        s - the offset in this frame
        lexical - true if this captured symbol is redefined locally
        Returns:
        the stacked value
      • get

        java.lang.Object get​(int s)
        Description copied from class: Frame
        Gets a value.
        Overrides:
        get in class Frame
        Parameters:
        s - the offset in this frame
        Returns:
        the stacked value
      • set

        void set​(int r,
                 java.lang.Object value)
        Description copied from class: Frame
        Sets a value.
        Overrides:
        set in class Frame
        Parameters:
        r - the offset in this frame
        value - the value to set in this frame