- java.lang.Object
-
- swim.structure.Interpreter
-
public class Interpreter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected InterpreterSettings
settings
-
Constructor Summary
Constructors Modifier Constructor Description Interpreter()
Interpreter(InterpreterSettings settings)
protected
Interpreter(InterpreterSettings settings, Item[] scopeStack, int scopeDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
didOperate(Operator operator, Item result)
void
didSelect(Selector selector, Object result)
void
didTransform(Selector selector, Item result)
Item
getScope(int index)
Item
peekScope()
Item
popScope()
void
pushScope(Item scope)
int
scopeDepth()
InterpreterSettings
settings()
Interpreter
settings(InterpreterSettings settings)
Item
swapScope(Item newScope)
void
willOperate(Operator operator)
void
willSelect(Selector selector)
void
willTransform(Selector selector)
-
-
-
Field Detail
-
settings
protected InterpreterSettings settings
-
-
Constructor Detail
-
Interpreter
protected Interpreter(InterpreterSettings settings, Item[] scopeStack, int scopeDepth)
-
Interpreter
public Interpreter(InterpreterSettings settings)
-
Interpreter
public Interpreter()
-
-
Method Detail
-
settings
public final InterpreterSettings settings()
-
settings
public Interpreter settings(InterpreterSettings settings)
-
scopeDepth
public final int scopeDepth()
-
peekScope
public Item peekScope()
-
getScope
public Item getScope(int index)
-
pushScope
public void pushScope(Item scope)
-
popScope
public Item popScope()
-
willOperate
public void willOperate(Operator operator)
-
willSelect
public void willSelect(Selector selector)
-
willTransform
public void willTransform(Selector selector)
-
-