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 java.lang.Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected java.lang.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, toExpressionsgetFullText, getLine, getNodeText, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullText, getLine, getNodeText, getTextcontains, getBeginIndex, getEndIndex, getLengthpublic 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 java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expressionaccept in class ExpressionEE extends java.lang.Throwableprotected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.