|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jexl.ScriptImpl
class ScriptImpl
Simple script implementation.
| Field Summary | |
|---|---|
private ASTJexlScript |
parsedScript
syntax tree. |
private java.lang.String |
text
text of the script. |
| Constructor Summary | |
|---|---|
ScriptImpl(java.lang.String scriptText,
ASTJexlScript scriptTree)
Create a new Script from the given string and parsed syntax. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(JexlContext context)
Executes the script with the variables contained in the supplied JexlContext. |
java.lang.String |
getText()
Returns the text of this Script. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String text
private final ASTJexlScript parsedScript
| Constructor Detail |
|---|
public ScriptImpl(java.lang.String scriptText,
ASTJexlScript scriptTree)
scriptText - the text of the script.scriptTree - the parsed script.| Method Detail |
|---|
public java.lang.Object execute(JexlContext context)
throws java.lang.Exception
JexlContext.
execute in interface Scriptcontext - A JexlContext containing variables.
java.lang.Exception - on any script parse or execution error.public java.lang.String getText()
getText in interface Script
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||