|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.modules.misc.bsf.BSFExpression
public class BSFExpression
An expression that uses the Bean scripting framework to perform a scripted calculation.
Constructor Summary | |
---|---|
BSFExpression()
Default constructor, create a new BeanShellExpression. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BSFExpression()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |