public abstract class ArithmeticExpression extends Expression implements IArithmeticExpression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
_lhs
An expression for the operand on the left-hand-side of the operator.
|
protected Expression |
_rhs
An expression for the operand on the right-hand-side of the operator.
|
_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
ArithmeticExpression() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
getLHS() |
String |
getOperator() |
IMethodInfo |
getOverride() |
Expression |
getRHS() |
boolean |
isCompileTimeConstant() |
boolean |
isNullSafe() |
boolean |
isUnchecked() |
void |
setLHS(Expression e) |
void |
setOperator(String strOperator) |
void |
setOverride(IMethodInfo overrideMi) |
void |
setRHS(Expression e) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, evaluate, 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, waitevaluate, evaluate, getContextTypeaddExceptionsFrom, 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, isSuppressed, isSynthetic, setLocation, setParent, visitprotected Expression _lhs
protected Expression _rhs
public Expression getLHS()
getLHS in interface IArithmeticExpressionpublic void setLHS(Expression e)
public Expression getRHS()
getRHS in interface IArithmeticExpressionpublic void setRHS(Expression e)
public String getOperator()
getOperator in interface IArithmeticExpressionpublic void setOperator(String strOperator)
public IMethodInfo getOverride()
getOverride in interface IOverridableOperationpublic void setOverride(IMethodInfo overrideMi)
setOverride in interface IOverridableOperationpublic boolean isNullSafe()
isNullSafe in interface IExpressionisNullSafe in class Expressionpublic boolean isUnchecked()
isUnchecked in interface IExpressionisUnchecked in class Expressionpublic boolean isCompileTimeConstant()
isCompileTimeConstant in interface IParsedElementisCompileTimeConstant in class ParsedElementpublic String toString()
ExpressiontoString in class ExpressionCopyright © 2016. All rights reserved.