org.apache.commons.jexl3.internal
Class Scope.Frame

java.lang.Object
  extended by org.apache.commons.jexl3.internal.Scope.Frame
Enclosing class:
Scope

public static final class Scope.Frame
extends Object

A call frame, created from a scope, stores the arguments and local variables in a "stack frame" (sic).

Since:
3.0

Constructor Summary
Scope.Frame(Scope s, Object[] r, int c)
          Creates a new frame.
 
Method Summary
 Scope.Frame assign(Object... values)
          Assign values to this frame.
 boolean equals(Object obj)
           
 Object get(int s)
          Gets a value.
 Scope getScope()
          Gets the scope.
 int hashCode()
           
 void set(int r, Object value)
          Sets a value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scope.Frame

public Scope.Frame(Scope s,
                   Object[] r,
                   int c)
Creates a new frame.

Parameters:
s - the scope
r - the stack frame
c - the number of curried parameters
Method Detail

getScope

public Scope getScope()
Gets the scope.

Returns:
this frame scope

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

get

public Object get(int s)
Gets a value.

Parameters:
s - the offset in this frame
Returns:
the stacked value

set

public void set(int r,
                Object value)
Sets a value.

Parameters:
r - the offset in this frame
value - the value to set in this frame

assign

public Scope.Frame assign(Object... values)
Assign values to this frame.

Parameters:
values - the values
Returns:
this frame


Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.