net.sf.jasperreports.engine.base
Class JRBaseExpression

java.lang.Object
  extended by 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

Version:
$Id: JRBaseExpression.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  int id
           
protected  Class<?> valueClass
          Deprecated. To be removed.
protected  String valueClassName
          Deprecated. To be removed.
protected  String valueClassRealName
          Deprecated. To be removed.
 
Fields inherited from interface net.sf.jasperreports.engine.JRExpression
EVALUATION_DEFAULT, EVALUATION_ESTIMATED, EVALUATION_OLD, NOT_USED_ID
 
Constructor Summary
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
 Object clone()
           
protected  String escapeTextChunk(String text)
           
 JRExpressionChunk[] getChunks()
           
 int getId()
           
 String getText()
           
 Class<?> getValueClass()
          Deprecated. To be removed.
 String getValueClassName()
          Deprecated. To be removed.
 void regenerateId()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueClassName

protected String valueClassName
Deprecated. To be removed.

valueClassRealName

protected String valueClassRealName
Deprecated. To be removed.

id

protected int id

valueClass

protected transient Class<?> valueClass
Deprecated. To be removed.
Constructor Detail

JRBaseExpression

protected JRBaseExpression()

JRBaseExpression

protected JRBaseExpression(JRExpression expression,
                           JRBaseObjectFactory factory,
                           Integer expressionId)
Creates a copy of an expression.

Parameters:
expression - the original expression
factory - the base object factory
expressionId - 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 expression
factory - the base object factory
Method Detail

regenerateId

public void regenerateId()

getValueClass

public Class<?> getValueClass()
Deprecated. To be removed.

Description copied from interface: JRExpression
Returns the expression return value class.

Specified by:
getValueClass in interface JRExpression

getValueClassName

public String getValueClassName()
Deprecated. To be removed.

Description copied from interface: JRExpression
Returns the expression return value class.

Specified by:
getValueClassName in interface JRExpression

getId

public int getId()
Specified by:
getId in interface JRExpression

getChunks

public JRExpressionChunk[] getChunks()
Specified by:
getChunks in interface JRExpression

getText

public String getText()
Specified by:
getText in interface JRExpression

escapeTextChunk

protected String escapeTextChunk(String text)

clone

public Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class Object


Copyright © 2012. All Rights Reserved.