- java.lang.Object
-
- swim.structure.Interpreter
-
public class Interpreter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected InterpreterSettingssettings
-
Constructor Summary
Constructors Modifier Constructor Description Interpreter()Interpreter(InterpreterSettings settings)protectedInterpreter(InterpreterSettings settings, Item[] scopeStack, int scopeDepth)
-
Method Summary
Modifier and Type Method Description voiddidOperate(Operator operator, Item result)voiddidSelect(Selector selector, Object result)voiddidTransform(Selector selector, Item result)ItemgetScope(int index)ItempeekScope()ItempopScope()voidpushScope(Item scope)intscopeDepth()InterpreterSettingssettings()Interpretersettings(InterpreterSettings settings)ItemswapScope(Item newScope)voidwillOperate(Operator operator)voidwillSelect(Selector selector)voidwillTransform(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)
-
-