Top Description Fields Constructors Methods
org.springframework.expression.spel.ast

public Class OpInc

extends Operator
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger, org.springframework.expression.EvaluationException, .Operation, .TypedValue, org.springframework.expression.spel.ExpressionState, .SpelEvaluationException, .SpelMessage, org.springframework.util.Assert

Increment operator. Can be used in a prefix or postfix form. This will throw appropriate exceptions if the operand in question does not support increment.
Authors
Andy Clement, Juergen Hoeller, Giovanni Dall'Oglio Risso, Sam Brannen
Since
3.2

Field Summary

Modifier and TypeField and Description
private static final String
private final boolean
Inherited from org.springframework.expression.spel.ast.Operator:
leftActualDescriptorrightActualDescriptor

Constructor Summary

AccessConstructor and Description
public
OpInc(int startPos, int endPos, boolean postfix, SpelNodeImpl... operands)

Method Summary

Modifier and TypeMethod and Description
public SpelNodeImpl
public TypedValue
public String
toStringAST()

Overrides org.springframework.expression.spel.ast.Operator.toStringAST.

Implements org.springframework.expression.spel.SpelNode.toStringAST.

String format for all operators is the same '(' [operand] [operator] [operand] ')'.

Inherited from org.springframework.expression.spel.ast.Operator:
equalityCheckgenerateComparisonCodegetLeftOperandgetOperatorNameisCompilableOperatorUsingNumerics

Field Detail

INCback to summary
private static final String INC
postfixback to summary
private final boolean postfix

Constructor Detail

OpIncback to summary
public OpInc(int startPos, int endPos, boolean postfix, SpelNodeImpl... operands)

Method Detail

getRightOperandback to summary
public SpelNodeImpl getRightOperand()

Overrides org.springframework.expression.spel.ast.Operator.getRightOperand.

Annotations
@Override
getValueInternalback to summary
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException

Implements abstract org.springframework.expression.spel.ast.SpelNodeImpl.getValueInternal.

Annotations
@Override
toStringASTback to summary
public String toStringAST()

Overrides org.springframework.expression.spel.ast.Operator.toStringAST.

Implements org.springframework.expression.spel.SpelNode.toStringAST.

Doc from org.springframework.expression.spel.ast.Operator.toStringAST.

String format for all operators is the same '(' [operand] [operator] [operand] ')'.

Returns:String

Doc from org.springframework.expression.spel.SpelNode.toStringAST.

the string form

Annotations
@Override