Class PostfixTerm
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
-
- org.pentaho.reporting.libraries.formula.lvalues.PostfixTerm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,LValue
public class PostfixTerm extends AbstractLValue
Creation-Date: 02.11.2006, 10:20:27- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PostfixTerm(LValue value, PostfixOperator operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()TypeValuePairevaluate()LValue[]getChildValues()Returns any dependent lvalues (parameters and operands, mostly).PostfixOperatorgetOperator()LValuegetValue()booleanisConstant()Checks whether the LValue is constant.java.lang.StringtoString()-
Methods inherited from class org.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
getContext, getParsePosition, getValueType, initialize, setParsePosition
-
-
-
-
Constructor Detail
-
PostfixTerm
public PostfixTerm(LValue value, PostfixOperator operator)
-
-
Method Detail
-
getOperator
public PostfixOperator getOperator()
-
getValue
public LValue getValue()
-
evaluate
public TypeValuePair evaluate() throws EvaluationException
- Throws:
EvaluationException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isConstant
public boolean isConstant()
Checks whether the LValue is constant. Constant lvalues always return the same value.- Returns:
-
getChildValues
public LValue[] getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).- Specified by:
getChildValuesin interfaceLValue- Overrides:
getChildValuesin classAbstractLValue- Returns:
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Specified by:
clonein interfaceLValue- Overrides:
clonein classAbstractLValue- Throws:
java.lang.CloneNotSupportedException
-
-