|
||||||||||
| 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.3 $
License: see License.txt
| Field Summary | |
|---|---|
protected groovy.lang.GroovyShell |
groovyShell
|
protected java.util.Hashtable |
referenceObjects
|
| Constructor Summary | |
|---|---|
XGroovyEvaluator()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluateAttribute(PageSupport page,
java.lang.String attributeValue)
Get the value of an attribute. |
XMethodReference |
getMethodReference(PageSupport page,
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 |
void |
setCurrentProject(XProject currentProject)
Set the current project and complete any initialization that depends on the project reference/instance. |
| 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
| 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(PageSupport page,
java.lang.String attributeValue)
evaluateAttribute in interface XAttributeEvaluatorpage - 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(PageSupport page,
java.lang.String attributeValue)
getMethodReference in interface XAttributeEvaluatorpage - the current pageattributeValue - the method name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||