org.jfree.formula.lvalues

Class PostfixTerm

Implemented Interfaces:
Cloneable, LValue, Serializable

public class PostfixTerm
extends AbstractLValue

Creation-Date: 02.11.2006, 10:20:27
Author:
Thomas Morgner

Constructor Summary

PostfixTerm(LValue value, PostfixOperator operator)

Method Summary

Object
clone()
TypeValuePair
evaluate()
LValue[]
getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).
PostfixOperator
getOperator()
LValue
getValue()
boolean
isConstant()
Checks, whether the LValue is constant.
String
toString()

Methods inherited from class org.jfree.formula.lvalues.AbstractLValue

clone, getChildValues, getContext, getValueType, initialize

Constructor Details

PostfixTerm

public PostfixTerm(LValue value,
                   PostfixOperator operator)

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Specified by:
clone in interface LValue
Overrides:
clone in interface AbstractLValue

evaluate

public TypeValuePair evaluate()
            throws EvaluationException
Specified by:
evaluate in interface LValue

getChildValues

public LValue[] getChildValues()
Returns any dependent lvalues (parameters and operands, mostly).
Specified by:
getChildValues in interface LValue
Overrides:
getChildValues in interface AbstractLValue
Returns:

getOperator

public PostfixOperator getOperator()

getValue

public LValue getValue()

isConstant

public boolean isConstant()
Checks, whether the LValue is constant. Constant lvalues always return the same value.
Specified by:
isConstant in interface LValue
Returns:

toString

public String toString()