public final class AdditiveExpression extends ArithmeticExpression implements IAdditiveExpression
additive-expression <multiplicative-expression> <additive-expression> + <multiplicative-expression> <additive-expression> - <multiplicative-expression>
IGosuParser_lhs, _rhs_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
AdditiveExpression() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate()
Evaluates this additive expression.
|
static Object |
evaluate(IType type,
Object lhsValue,
Object rhsValue,
IType lhsType,
IType rhsType,
boolean bAdditive,
boolean bNullSafe,
boolean bNumericType) |
static Object |
evaluate(IType type,
Object lhsValue,
Object rhsValue,
IType lhsType,
IType rhsType,
boolean bAdditive,
boolean bNullSafe,
boolean bNumericType,
Object ctx,
int startLhs,
int endLhs,
int startRhs,
int endRhs) |
boolean |
isAdditive()
Returns whether or not the operation is addition or substraction.
|
boolean |
isAssignment() |
getLHS, getOperator, getOverride, getRHS, isCompileTimeConstant, isNullSafe, isUnchecked, setLHS, setOperator, setOverride, setRHS, toStringevaluate, getContextType, getReturnType, getType, getTypeImpl, setTypeaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfo, visitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLHS, getOperator, getRHSevaluate, getContextType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParent, visitgetOverride, setOverridepublic boolean isAdditive()
isAdditive in interface IAdditiveExpressionpublic boolean isAssignment()
public Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic static Object evaluate(IType type, Object lhsValue, Object rhsValue, IType lhsType, IType rhsType, boolean bAdditive, boolean bNullSafe, boolean bNumericType, Object ctx, int startLhs, int endLhs, int startRhs, int endRhs)
Copyright © 2019. All rights reserved.