Class JRDesignExpression
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseExpression
-
- net.sf.jasperreports.engine.design.JRDesignExpression
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRExpression
public class JRDesignExpression extends JRBaseExpression implements JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JRExpressionChunk>chunksprotected static booleanLEGACY_PARSERstatic PatternPLACEHOLDER_PATTERNDeprecated.moved toExpressionParser.PLACEHOLDER_PATTERNstatic StringPROPERTY_LEGACY_PARSERProperty that specifies whether a legacy parser method should be used to parse this expression.static StringPROPERTY_TEXTstatic StringPROPERTY_VALUE_CLASS_NAMEDeprecated.To be removed.-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseExpression
id, type, valueClass, valueClassName, valueClassRealName
-
Fields inherited from interface net.sf.jasperreports.engine.JRExpression
EVALUATION_DEFAULT, EVALUATION_ESTIMATED, EVALUATION_OLD, ID_INTERPRETED, NOT_USED_ID
-
-
Constructor Summary
Constructors Constructor Description JRDesignExpression()JRDesignExpression(String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddChunk(byte type, String text)voidaddChunk(JRDesignExpressionChunk chunk)voidaddFieldChunk(String text)voidaddParameterChunk(String text)voidaddResourceChunk(String text)voidaddTextChunk(String text)voidaddVariableChunk(String text)Objectclone()JRExpressionChunk[]getChunks()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.protected voidlegacyParseText(String text)protected voidparseText(String text)voidsetChunks(List<JRExpressionChunk> chunks)Clears the current list of chunks and adds the passed list of chunks.voidsetId(int id)FIXMENOW remove me?voidsetInterpreted()voidsetText(String text)voidsetType(ExpressionTypeEnum type)voidsetValueClass(Class<?> clazz)Deprecated.To be removed.voidsetValueClassName(String className)Deprecated.To be removed.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseExpression
escapeTextChunk, getId, getText, getType, getValueClass, getValueClassName, regenerateId
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRExpression
isInterpreted
-
-
-
-
Field Detail
-
PROPERTY_LEGACY_PARSER
public static final String PROPERTY_LEGACY_PARSER
Property that specifies whether a legacy parser method should be used to parse this expression. Default value isfalse.- See Also:
- Constant Field Values
-
LEGACY_PARSER
protected static final boolean LEGACY_PARSER
-
PLACEHOLDER_PATTERN
@Deprecated public static final Pattern PLACEHOLDER_PATTERN
Deprecated.moved toExpressionParser.PLACEHOLDER_PATTERN
-
PROPERTY_TEXT
public static final String PROPERTY_TEXT
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_CLASS_NAME
public static final String PROPERTY_VALUE_CLASS_NAME
Deprecated.To be removed.- See Also:
- Constant Field Values
-
chunks
protected List<JRExpressionChunk> chunks
-
-
Constructor Detail
-
JRDesignExpression
public JRDesignExpression()
-
JRDesignExpression
public JRDesignExpression(String text)
-
-
Method Detail
-
setValueClass
public void setValueClass(Class<?> clazz)
Deprecated.To be removed.
-
setValueClassName
public void setValueClassName(String className)
Deprecated.To be removed.
-
setId
public void setId(int id)
FIXMENOW remove me?
-
setInterpreted
public void setInterpreted()
-
setType
public void setType(ExpressionTypeEnum type)
-
getChunks
public JRExpressionChunk[] getChunks()
- Specified by:
getChunksin interfaceJRExpression- Overrides:
getChunksin classJRBaseExpression
-
setChunks
public void setChunks(List<JRExpressionChunk> chunks)
Clears the current list of chunks and adds the passed list of chunks. The reference to the list passed is not kept.
-
addChunk
public void addChunk(JRDesignExpressionChunk chunk)
-
addChunk
protected void addChunk(byte type, String text)
-
addTextChunk
public void addTextChunk(String text)
-
addParameterChunk
public void addParameterChunk(String text)
-
addFieldChunk
public void addFieldChunk(String text)
-
addVariableChunk
public void addVariableChunk(String text)
-
addResourceChunk
public void addResourceChunk(String text)
-
setText
public void setText(String text)
-
legacyParseText
protected void legacyParseText(String text)
-
parseText
protected void parseText(String text)
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseExpression
-
-