|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Literal | |
---|---|
cdx.scorebot.scoring.logic | Contains the data structures used to hold and process the information parsed by the Scoring Logic lexical analyzer. |
cdx.scorebot.scoring.logic.parser | Contains the Scoring Logic lexical analyzer and parser. |
Uses of Literal in cdx.scorebot.scoring.logic |
---|
Methods in cdx.scorebot.scoring.logic that return Literal | |
---|---|
static Literal |
OperatorType.evaluate(Literal o1,
OperatorType operator,
Literal o2)
evaluates the specified binary operator on the specified operands |
static Literal |
OperatorType.evaluate(OperatorType operator,
Literal o)
evaluates the specified unary operator on the specified operand |
Literal |
UnaryExpression.evaluateLogic(Context context)
evaluate this logic code in the specified context |
Literal |
TestResultValue.evaluateLogic(Context context)
returns the value of the the specified result for the specified test |
Literal |
TestConfigValue.evaluateLogic(Context context)
returns the value of the the specified configuration option for the specified test |
Literal |
PrimaryExpression.evaluateLogic(Context context)
evaluate this logic code in the specified context |
Literal |
Method.evaluateLogic(Context context)
evaluate the method called in the specified context |
Literal |
LogicCodeEvaluatable.evaluateLogic(Context context)
evaluate this logic code in the specified context |
Literal |
Literal.evaluateLogic(Context context)
a literal is an atomic value, so this just returns itself |
Literal |
Identifier.evaluateLogic(Context context)
returns the value of the variable whose name is specified by this identifier |
Literal |
ExpressionLeftAssociative.evaluateLogic(Context context)
evaluate this expression in the specified context |
Literal |
Expression.evaluateLogic(Context context)
evaluate this expression in the specified context |
Literal |
ConditionalOrExpression.evaluateLogic(Context context)
evaluate this expression in the specified context |
Literal |
ConditionalAndExpression.evaluateLogic(Context context)
evaluate this expression in the specified context |
Literal |
Assignment.evaluateLogic(Context context)
evaluate this logic code in the specified context |
Literal |
LiteralType.getDefaultValue()
Returns false if this is a Boolean, 0 if this is an Integer, 0.0 if this is a Double, and the empty string if this is a String. |
protected Literal |
Context.getTestOptionValue(java.lang.String testName,
int testNum,
java.lang.String optionName)
gets the value of a test option |
protected Literal |
Context.getTestResultValue(java.lang.String testName,
int testNum,
java.lang.String resultName)
gets the value of a test result |
protected Literal |
Context.getVariableValue(java.lang.String varName)
gets the specified variable; if a variable with the specified name isn't found, then a UndefinedVariableException will be thrown. |
Methods in cdx.scorebot.scoring.logic with parameters of type Literal | |
---|---|
protected void |
Context.addVariable(Identifier iden,
Literal value)
adds a variable to the context |
protected int |
Context.count(java.lang.String testName,
int numResultsToLookAt,
java.lang.String resultName,
OperatorType operator,
Literal operand2)
counts the number of a times a given result meets a given condition for some number of iterations of the test. |
static Literal |
OperatorType.evaluate(Literal o1,
OperatorType operator,
Literal o2)
evaluates the specified binary operator on the specified operands |
static Literal |
OperatorType.evaluate(OperatorType operator,
Literal o)
evaluates the specified unary operator on the specified operand |
static boolean |
ConditionalAndExpression.evaluateAND(Context context,
Literal leftOperand,
java.util.Vector<ConditionalXorExpression> rightOperands)
Returns the short-circuit evaluation of the expression leftOperand && rightOperands[0] && rightOperands[1] ... |
static boolean |
ConditionalOrExpression.evaluateOR(Context context,
Literal leftOperand,
java.util.Vector<ConditionalAndExpression> rightOperands)
Returns the short-circuit evaluation of the expression leftOperand || rightOperands[0] || rightOperands[1] ... |
protected int |
Context.floor(Literal literal)
Convert a double to a floored integer. |
protected void |
Context.setVariableValue(java.lang.String varName,
Literal value)
|
protected java.lang.String |
Context.tostring(Literal literal)
Convert a literal to its string representation |
Uses of Literal in cdx.scorebot.scoring.logic.parser |
---|
Methods in cdx.scorebot.scoring.logic.parser that return Literal | |
---|---|
Literal |
LogicParser.prLiteral()
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |