public final class IncDecExpression extends Expression
Constructor and Description |
---|
IncDecExpression(ASTInfo info,
AssignableExpression expression,
boolean increment,
boolean postfix)
Creates a new expression object.
|
Modifier and Type | Method and Description |
---|---|
<T,E extends Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
AssignableExpression |
getExpression()
Returns the inner expression.
|
boolean |
isIncrement()
Returns
true if this is increment operation, false if decrement. |
boolean |
isPostfix()
Returns
true if this is postfix operation (i.e. |
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, getType, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressions
getFullText, getLine, getNodeText, getText, toString
contains, getBeginIndex, getEndIndex, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullText, getLine, getNodeText, getText
contains, getBeginIndex, getEndIndex, getLength
public IncDecExpression(ASTInfo info, AssignableExpression expression, boolean increment, boolean postfix)
info
- expression
- increment
- postfix
- public AssignableExpression getExpression()
public boolean isIncrement()
true
if this is increment operation, false
if decrement.true
if this is increment operation, false
if decrementpublic boolean isPostfix()
true
if this is postfix operation (i.e. a++
),
false
if this is prefix operation (i.e. ++a
).true
if this is postfix operationpublic <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expression
accept
in class Expression
E
E extends Throwable
protected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
Expression
basicInterpret
in class Expression
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.