public class OwExprBinaryExpression extends OwExprExpression
Binary expression implementation (a left-operand-operator-right-operand expression).
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
m_errorTable, m_symbolTable, m_typeError
Constructor and Description |
---|
OwExprBinaryExpression(OwExprSymbolTable symTable_p,
OwExprErrorTable errorTable_p,
OwExprExpression operand1_p,
OwExprBinaryOperator operator_p,
OwExprExpression operand2_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
OwExprValue |
evaluate(OwExprScope scope_p)
Evaluates this expression on the
OwExprScope (scope) provided as argument. |
String |
toString() |
OwExprExpressionType |
type()
Type check method.
|
errCount, evaluate, evaluate, getErrorTable, getSymbol, getSymbolTable, hasErrors, initType, symbolsVisibleInScopes
public OwExprBinaryExpression(OwExprSymbolTable symTable_p, OwExprErrorTable errorTable_p, OwExprExpression operand1_p, OwExprBinaryOperator operator_p, OwExprExpression operand2_p)
symTable_p
- global symbol tableerrorTable_p
- global error tableoperand1_p
- left side operandoperator_p
- operatoroperand2_p
- right side operandpublic OwExprValue evaluate(OwExprScope scope_p) throws OwExprEvaluationException
OwExprScope
(scope) provided as argument.evaluate
in class OwExprExpression
scope_p
- external scope to be used during evaluationOwExprEvaluationException
- in case of evaluation failurepublic OwExprExpressionType type() throws OwExprTypeMissmatchException
OwExprExpression.m_typeError
should
be set to true
type
in class OwExprExpression
OwExprTypeMissmatchException
- if type errors are ecountrede during type computationCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.