Package net.sf.jasperreports.engine.base
Class JRBaseExpression
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseExpression
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCloneable
,JRExpression
- Direct Known Subclasses:
JRDesignExpression
public class JRBaseExpression extends Object implements JRExpression, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
id
protected ExpressionTypeEnum
type
-
Fields inherited from interface net.sf.jasperreports.engine.JRExpression
EVALUATION_DEFAULT, EVALUATION_ESTIMATED, EVALUATION_OLD, ID_INTERPRETED, NOT_USED_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseExpression()
protected
JRBaseExpression(JRExpression expression, JRBaseObjectFactory factory)
Creates a copy of an expression.protected
JRBaseExpression(JRExpression expression, JRBaseObjectFactory factory, Integer expressionId)
Creates a copy of an expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
protected String
escapeTextChunk(String text)
JRExpressionChunk[]
getChunks()
int
getId()
String
getText()
ExpressionTypeEnum
getType()
void
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
-
id
protected int id
-
type
protected ExpressionTypeEnum type
-
-
Constructor Detail
-
JRBaseExpression
protected JRBaseExpression()
-
JRBaseExpression
protected JRBaseExpression(JRExpression expression, JRBaseObjectFactory factory, Integer expressionId)
Creates a copy of an expression.- Parameters:
expression
- the original expressionfactory
- the base object factoryexpressionId
- if not null, the created expression will use it as ID instead of the original expressions's ID
-
JRBaseExpression
protected JRBaseExpression(JRExpression expression, JRBaseObjectFactory factory)
Creates a copy of an expression.- Parameters:
expression
- the original expressionfactory
- the base object factory
-
-
Method Detail
-
regenerateId
public void regenerateId()
-
getId
public int getId()
- Specified by:
getId
in interfaceJRExpression
-
getType
public ExpressionTypeEnum getType()
- Specified by:
getType
in interfaceJRExpression
-
getChunks
public JRExpressionChunk[] getChunks()
- Specified by:
getChunks
in interfaceJRExpression
-
getText
public String getText()
- Specified by:
getText
in interfaceJRExpression
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-