Context

com.netflix.atlas.core.stacklang.Context
case class Context(interpreter: Interpreter, stack: List[Any], variables: Map[String, Any], initialVariables: Map[String, Any], frozenStack: List[Any], features: Features, callDepth: Int)

State related to the execution of a stack language expression.

Value parameters

features

Set of features that are permitted for the execution.

frozenStack

Separate stack that has been frozen to prevent further modification. See the :freeze operator for more information.

initialVariables

Initial set of variables used when beginning the execution. These values will be used when operations like :freeze need to reset the interpreter to the initial state.

interpreter

Interpreter that is performing the execution.

stack

Stack that maintains the state for the program.

variables

Variables that can be set to keep state outside of the main stack. See the :get and :set operators for more information.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Decrease the call depth for detecting deeply nested calls.

Decrease the call depth for detecting deeply nested calls.

Attributes

Remove the contents of the stack and push them onto the frozen stack. The variable state will also be cleared.

Remove the contents of the stack and push them onto the frozen stack. The variable state will also be cleared.

Attributes

Increase the call depth for detecting deeply nested calls.

Increase the call depth for detecting deeply nested calls.

Attributes

Combine the stack and frozen stack to a final result stack. The frozen contents will be older entries on the final result stack.

Combine the stack and frozen stack to a final result stack. The frozen contents will be older entries on the final result stack.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product