|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.model.DomainModel
org.problets.domain.model.expression.Expression
org.problets.domain.model.expression.StandAloneExpression
public class StandAloneExpression
StandAloneExpression Handles expressions for expression tutor - not to be used in code. Resets SymbolTable, creates an activation record for the expression before creating the expression.
Field Summary |
---|
Fields inherited from class org.problets.domain.model.expression.Expression |
---|
IDENTITY, MAX_PRECEDENCE_LEVELS |
Constructor Summary | |
---|---|
StandAloneExpression(java.lang.String template)
|
Method Summary | |
---|---|
Value |
evaluate()
Meant to be used by standalone expressions which want the activation record to be evaluated for variable declarations |
static void |
main(java.lang.String[] args)
|
void |
update(java.lang.String template)
|
Methods inherited from class org.problets.domain.model.expression.Expression |
---|
containsOperator, evaluate, explainObject, explainPrinting, explainProcess, getActivationRecord, getCode, getExpressionVariables, getFunctionCalls, getNumOperators, getOperatorFromSymbol, getOperatorListString, getOperatorPrecedenceTable, getPossibleErrors, getPreliminaryCode, getProcessedExpression, getRoot, getType, grade, isArithmetic, isAssignment, isBitwise, isConstant, isLiteralExpression, isLogical, isRelational, isValidOperator, isVariable, printExpression, sortExplanation, tokenize, toString |
Methods inherited from class org.problets.domain.model.DomainModel |
---|
clone, getId, getIdName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandAloneExpression(java.lang.String template)
Method Detail |
---|
public void update(java.lang.String template)
public Value evaluate()
evaluate
in class Expression
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |