Package coneforest.psylla.core
Interface PsyContext
-
- All Superinterfaces:
PsyConvertableToName,PsyConvertableToString,PsyObject
- All Known Implementing Classes:
Interpreter
public interface PsyContext extends PsyObject
A representation ofcontext, an execution context.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PsyFormalDictcurrentDict()intcurrentLoopLevel()intcurrentStopLevel()DictStackdictStack()intexecLevel()ExecutionStackexecutionStack()voidfork()longgetId()booleangetStopFlag()voidhandleExecutionStack()voidhandleExecutionStack(int level)voidinterpret(PsyReader oReader)voidinterpretBraced(PsyReader oReader)voidjoin()NamespacePoolnamespacePool()OperandStackoperandStack()OperandStackoperandStackBacked(int count)intpopLoopLevel()intpopStopLevel()static PsyContextpsyCurrentContext()Returns the currently executing context.<T extends PsyObject>
TpsyLoad(PsyTextual oKey)voidpsyRequire(PsyTextual o)PsyFormalDictpsyWhere(PsyTextual oKey)intpushLoopLevel()intpushStopLevel()voidquit()voidrepl()voidsetStopFlag(boolean stopFlag)voidstop_()PsyFormalDictsystemDict()default StringtoSyntaxString()-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
-
-
-
Field Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
getId
long getId()
-
join
void join() throws InterruptedException
- Throws:
InterruptedException
-
toSyntaxString
default String toSyntaxString()
- Specified by:
toSyntaxStringin interfacePsyObject
-
psyCurrentContext
static PsyContext psyCurrentContext()
Returns the currently executing context.- Returns:
- the currently executing context.
-
fork
void fork() throws PsyErrorException
- Throws:
PsyErrorException
-
quit
void quit()
-
stop_
void stop_()
-
operandStack
OperandStack operandStack()
-
dictStack
DictStack dictStack()
-
executionStack
ExecutionStack executionStack()
-
systemDict
PsyFormalDict systemDict()
-
currentDict
PsyFormalDict currentDict()
-
namespacePool
NamespacePool namespacePool()
-
execLevel
int execLevel()
-
pushLoopLevel
int pushLoopLevel()
-
popLoopLevel
int popLoopLevel()
-
currentLoopLevel
int currentLoopLevel()
-
pushStopLevel
int pushStopLevel()
-
popStopLevel
int popStopLevel()
-
currentStopLevel
int currentStopLevel()
-
getStopFlag
boolean getStopFlag()
-
repl
void repl() throws PsyErrorException
- Throws:
PsyErrorException
-
setStopFlag
void setStopFlag(boolean stopFlag)
-
handleExecutionStack
void handleExecutionStack()
-
handleExecutionStack
void handleExecutionStack(int level)
-
interpret
void interpret(PsyReader oReader) throws PsyErrorException
- Throws:
PsyErrorException
-
interpretBraced
void interpretBraced(PsyReader oReader) throws PsyErrorException
- Throws:
PsyErrorException
-
operandStackBacked
OperandStack operandStackBacked(int count) throws PsyErrorException
- Throws:
PsyErrorException
-
psyWhere
PsyFormalDict psyWhere(PsyTextual oKey)
-
psyLoad
<T extends PsyObject> T psyLoad(PsyTextual oKey) throws PsyErrorException
- Throws:
PsyErrorException
-
psyRequire
void psyRequire(PsyTextual o) throws PsyErrorException
- Throws:
PsyErrorException
-
-