|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.scripts.groovy.GroovyEvaluator
public class GroovyEvaluator
An attribute evaluator
Copyright (c) Formaria Ltd., 2008
$Revision: 2.2 $
License: see License.txt
| Field Summary | |
|---|---|
protected ExceptionHandler |
exceptionHandler
Deprecated. |
protected GroovyShell |
groovyShell
Deprecated. |
protected java.util.Hashtable |
referenceObjects
Deprecated. |
protected java.lang.Object |
result
Deprecated. |
| Constructor Summary | |
|---|---|
GroovyEvaluator()
Deprecated. |
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
Deprecated. Get the value of an attribute. |
MethodReference |
getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
Deprecated. Get the value of an attribute by evaluating a method reference |
MethodReference |
getMethodReference(java.lang.String attributeValue)
Deprecated. Get the value of an attribute by evaluating a method reference |
java.lang.Object |
getResult()
Deprecated. Explicitly get the result of an evaluation. |
void |
setCurrentProject(Project currentProject)
Deprecated. Set the current project and complete any initialization that depends on the project reference/instance. |
void |
setExceptionHandler(ExceptionHandler eh)
Deprecated. Set an exception handler for processing exceptions |
void |
setResult(java.lang.Object value)
Deprecated. Explicitly set the result of an evaluation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable referenceObjects
protected GroovyShell groovyShell
protected ExceptionHandler exceptionHandler
protected java.lang.Object result
| Constructor Detail |
|---|
public GroovyEvaluator()
| Method Detail |
|---|
public void setCurrentProject(Project currentProject)
setCurrentProject in interface AttributeEvaluatorproject - the current or owning project
public java.lang.Object evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
evaluateAttribute in interface AttributeEvaluatorinstance - the page being loadedattributeValue - the raw value of the attribute
public MethodReference getMethodReference(java.lang.String attributeValue)
getMethodReference in interface AttributeEvaluatorattributeValue - the method name
public MethodReference getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
getMethodReference in interface AttributeEvaluatorinstance - the current page or object that provides the methods or fields used in the evaluationattributeValue - the method name
public void setExceptionHandler(ExceptionHandler eh)
setExceptionHandler in interface AttributeEvaluatoreh - the exception handlerpublic void setResult(java.lang.Object value)
setResult in interface AttributeEvaluatorthe - new result valuepublic java.lang.Object getResult()
getResult in interface AttributeEvaluator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||