|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.util.Eval
public class Eval
Allow easy integration from Groovy into Java through convenience methods.
| Constructor Summary | |
|---|---|
Eval()
|
|
| Method Summary | |
|---|---|
static Object |
me(String expression)
|
static Object |
me(String symbol,
Object object,
String expression)
evaluate expression and make object available inside the expression as 'symbol' |
static Object |
x(Object x,
String expression)
evaluate expression and make x available inside the expression as 'x' |
static Object |
xy(Object x,
Object y,
String expression)
evaluate expression and make x and y available inside the expression as 'x' and 'y' |
static Object |
xyz(Object x,
Object y,
Object z,
String expression)
evaluate expression and make x,y,z available inside the expression as 'x','y','z' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Eval()
| Method Detail |
|---|
public static Object me(String expression)
throws CompilationFailedException
expression - the Groovy expression to evaluate
CompilationFailedException - if expression is no proper Groovy
public static Object me(String symbol,
Object object,
String expression)
throws CompilationFailedException
expression - the Groovy expression to evaluate
CompilationFailedException - if expression is no proper Groovy
public static Object x(Object x,
String expression)
throws CompilationFailedException
expression - the Groovy expression to evaluate
CompilationFailedException - if expression is no proper Groovy
public static Object xy(Object x,
Object y,
String expression)
throws CompilationFailedException
expression - the Groovy expression to evaluate
CompilationFailedException - if expression is no proper Groovy
public static Object xyz(Object x,
Object y,
Object z,
String expression)
throws CompilationFailedException
expression - the Groovy expression to evaluate
CompilationFailedException - if expression is no proper Groovy
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||