Class ContextLookup
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
-
- org.pentaho.reporting.libraries.formula.lvalues.ContextLookup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,LValue
public class ContextLookup extends AbstractLValue
A reference that queries the datarow.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextLookup(java.lang.String name)ContextLookup(java.lang.String name, ParsePosition parsePosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeValuePairevaluate()java.lang.StringgetName()TypegetValueType()Querying the value type is only valid *after* the value has been evaluated.booleanisConstant()Checks whether the LValue is constant.java.lang.StringtoString()-
Methods inherited from class org.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
clone, getChildValues, getContext, getParsePosition, initialize, setParsePosition
-
-
-
-
Constructor Detail
-
ContextLookup
public ContextLookup(java.lang.String name)
-
ContextLookup
public ContextLookup(java.lang.String name, ParsePosition parsePosition)
-
-
Method Detail
-
evaluate
public TypeValuePair evaluate() throws EvaluationException
- Throws:
EvaluationException
-
getValueType
public Type getValueType()
Description copied from class:AbstractLValueQuerying the value type is only valid *after* the value has been evaluated.- Specified by:
getValueTypein interfaceLValue- Overrides:
getValueTypein classAbstractLValue- Returns:
-
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:
-
getName
public java.lang.String getName()
-
-