|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.evaluator.XGroovyEvaluator
public class XGroovyEvaluator
An attribute evaluator
Copyright (c) Xoetrope Ltd., 2002-2004
$Revision: 2.2 $
License: see License.txt
| Field Summary | |
|---|---|
protected XExceptionHandler |
exceptionHandler
|
protected groovy.lang.GroovyShell |
groovyShell
|
protected java.util.Hashtable |
referenceObjects
|
protected java.lang.Object |
result
|
| Constructor Summary | |
|---|---|
XGroovyEvaluator()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute. |
XMethodReference |
getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute by evaluating a method reference |
XMethodReference |
getMethodReference(java.lang.String attributeValue)
Get the value of an attribute by evaluating a method reference |
java.lang.Object |
getResult()
Explicitly get the result of an evaluation. |
void |
setCurrentProject(XProject currentProject)
Set the current project and complete any initialization that depends on the project reference/instance. |
void |
setExceptionHandler(XExceptionHandler eh)
Set an exception handler for processing exceptions |
void |
setResult(java.lang.Object value)
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 groovy.lang.GroovyShell groovyShell
protected XExceptionHandler exceptionHandler
protected java.lang.Object result
| Constructor Detail |
|---|
public XGroovyEvaluator()
| Method Detail |
|---|
public void setCurrentProject(XProject currentProject)
setCurrentProject in interface XAttributeEvaluatorproject - the current or owning project
public java.lang.Object evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
evaluateAttribute in interface XAttributeEvaluatorinstance - the page being loadedattributeValue - the raw value of the attribute
public XMethodReference getMethodReference(java.lang.String attributeValue)
getMethodReference in interface XAttributeEvaluatorattributeValue - the method name
public XMethodReference getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
getMethodReference in interface XAttributeEvaluatorinstance - the current page or object that provides the methods or fields used in the evaluationattributeValue - the method name
public void setExceptionHandler(XExceptionHandler eh)
setExceptionHandler in interface XAttributeEvaluatoreh - the exception handlerpublic void setResult(java.lang.Object value)
setResult in interface XAttributeEvaluatorthe - new result valuepublic java.lang.Object getResult()
getResult in interface XAttributeEvaluator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||