public class BSFExpression extends AbstractExpression
Constructor and Description |
---|
BSFExpression()
Default constructor, create a new BeanShellExpression.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the expression and reinitializes the script.
|
String |
getExpression()
Returns the script that gets evaluated every time the getValue() method is called.
|
String |
getLanguage()
Returns the programming language, in which the interpreter work.
|
String |
getScript()
Returns the script.
|
Object |
getValue()
Evaluates the defined expression.
|
void |
setExpression(String expression)
Sets the script that should be executed.
|
void |
setLanguage(String language)
Defines the programming language of the script and expression.
|
void |
setScript(String script)
Defines the script.
|
getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public BSFExpression()
public Object getValue()
public Object clone() throws CloneNotSupportedException
clone
in interface Expression
clone
in class AbstractExpression
CloneNotSupportedException
- this should never happen.public String getExpression()
public void setExpression(String expression)
expression
- the script.public String getLanguage()
public void setLanguage(String language)
language
- the programming language of the script.public String getScript()
public void setScript(String script)
script
- an initialization script.