|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.Function<T,R> org.op4j.ognl.functions.FnOgnl<T,R>
public final class FnOgnl<T,R>
Function hub class for functions that evaluate OGNL expressions and return their results.
Field Summary | |
---|---|
static String |
INDEX_VARIABLE_NAME
|
static String |
PARAM_VARIABLE_NAME
|
static String |
TARGET_VARIABLE_NAME
|
Method Summary | ||
---|---|---|
static
|
arrayOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForArrayOf(Type, String, Object...) . |
|
static org.op4j.functions.Function<Object,String[]> |
arrayOfString(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForArrayOfString(String, Object...) . |
|
static org.op4j.functions.Function<Object,Byte> |
b(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForByte(String, Object...) . |
|
static org.op4j.functions.Function<Object,BigDecimal> |
bigDecimal(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForBigDecimal(String, Object...) . |
|
static org.op4j.functions.Function<Object,BigInteger> |
bigInteger(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForBigInteger(String, Object...) . |
|
static org.op4j.functions.Function<Object,Boolean> |
bool(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForBoolean(String, Object...) . |
|
static org.op4j.functions.Function<Object,Character> |
c(String ognlExpression,
Object... optionalParameters)
Abbreviation for { #evalCharacter(String, Object...) . |
|
static org.op4j.functions.Function<Object,Calendar> |
calendar(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForCalendar(String, Object...) . |
|
static org.op4j.functions.Function<Object,Double> |
d(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForDouble(String, Object...) . |
|
static org.op4j.functions.Function<Object,Date> |
date(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForDate(String, Object...) . |
|
static
|
evalFor(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns an object of type R. |
|
static
|
evalForArrayOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns R[]. |
|
static org.op4j.functions.Function<Object,String[]> |
evalForArrayOfString(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns String[]. |
|
static org.op4j.functions.Function<Object,BigDecimal> |
evalForBigDecimal(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns BigDecimal. |
|
static org.op4j.functions.Function<Object,BigInteger> |
evalForBigInteger(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns BigInteger. |
|
static org.op4j.functions.Function<Object,Boolean> |
evalForBoolean(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Boolean. |
|
static org.op4j.functions.Function<Object,Byte> |
evalForByte(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Byte. |
|
static org.op4j.functions.Function<Object,Calendar> |
evalForCalendar(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Calendar. |
|
static org.op4j.functions.Function<Object,Character> |
evalForCharacter(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Character. |
|
static org.op4j.functions.Function<Object,Date> |
evalForDate(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Date. |
|
static org.op4j.functions.Function<Object,Double> |
evalForDouble(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Double. |
|
static org.op4j.functions.Function<Object,Float> |
evalForFloat(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Float. |
|
static org.op4j.functions.Function<Object,Integer> |
evalForInteger(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Integer. |
|
static
|
evalForListOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns List<R>. |
|
static org.op4j.functions.Function<Object,List<String>> |
evalForListOfString(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns List<String>. |
|
static org.op4j.functions.Function<Object,Long> |
evalForLong(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Long. |
|
static org.op4j.functions.Function<Object,Object> |
evalForObject(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Object. |
|
static
|
evalForSetOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Set<R>. |
|
static org.op4j.functions.Function<Object,Set<String>> |
evalForSetOfString(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Set<String>. |
|
static org.op4j.functions.Function<Object,Short> |
evalForShort(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns Short. |
|
static org.op4j.functions.Function<Object,String> |
evalForString(String ognlExpression,
Object... optionalParameters)
Evaluates an OGNL expression which returns String. |
|
R |
execute(T input,
org.op4j.functions.ExecCtx ctx)
|
|
static org.op4j.functions.Function<Object,Float> |
f(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForFloat(String, Object...) . |
|
static org.op4j.functions.Function<Object,Integer> |
i(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForInteger(String, Object...) . |
|
static org.op4j.functions.Function<Object,Long> |
l(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForLong(String, Object...) . |
|
static
|
listOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForListOf(Type, String, Object...) . |
|
static org.op4j.functions.Function<Object,List<String>> |
listOfString(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForListOfString(String, Object...) . |
|
static org.op4j.functions.Function<Object,Object> |
obj(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForObject(String, Object...) . |
|
static
|
obj(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalFor(Type, String, Object...) . |
|
static org.op4j.functions.Function<Object,String> |
s(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForString(String, Object...) . |
|
static
|
setOf(org.javaruntype.type.Type<R> resultType,
String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForSetOf(Type, String, Object...) . |
|
static org.op4j.functions.Function<Object,Set<String>> |
setOfString(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForSetOfString(String, Object...) . |
|
static org.op4j.functions.Function<Object,Short> |
shr(String ognlExpression,
Object... optionalParameters)
Abbreviation for { evalForShort(String, Object...) . |
Methods inherited from class org.op4j.functions.Function |
---|
execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TARGET_VARIABLE_NAME
public static final String PARAM_VARIABLE_NAME
public static final String INDEX_VARIABLE_NAME
Method Detail |
---|
public static org.op4j.functions.Function<Object,Object> evalForObject(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Object. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Object> obj(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForObject(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,R> evalFor(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns an object of type R. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
resultType
- the type of the object returned by the expressionognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,R> obj(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Abbreviation for {evalFor(Type, String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,BigInteger> evalForBigInteger(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns BigInteger. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,BigInteger> bigInteger(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForBigInteger(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,BigDecimal> evalForBigDecimal(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns BigDecimal. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,BigDecimal> bigDecimal(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForBigDecimal(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Boolean> evalForBoolean(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Boolean. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Boolean> bool(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForBoolean(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Byte> evalForByte(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Byte. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Byte> b(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForByte(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Character> evalForCharacter(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Character. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Character> c(String ognlExpression, Object... optionalParameters)
Abbreviation for {#evalCharacter(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Calendar> evalForCalendar(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Calendar. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Calendar> calendar(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForCalendar(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Date> evalForDate(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Date. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Date> date(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForDate(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Double> evalForDouble(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Double. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Double> d(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForDouble(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Float> evalForFloat(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Float. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Float> f(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForFloat(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Integer> evalForInteger(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Integer. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Integer> i(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForInteger(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Long> evalForLong(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Long. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Long> l(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForLong(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Short> evalForShort(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Short. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Short> shr(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForShort(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,String> evalForString(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns String. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,String> s(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForString(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,List<String>> evalForListOfString(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns List<String>. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,List<String>> listOfString(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForListOfString(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Set<String>> evalForSetOfString(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Set<String>. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,Set<String>> setOfString(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForSetOfString(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,String[]> evalForArrayOfString(String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns String[]. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static org.op4j.functions.Function<Object,String[]> arrayOfString(String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForArrayOfString(String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,List<R>> evalForListOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns List<R>. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
resultType
- the type of the resulting list componentsognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,List<R>> listOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForListOf(Type, String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,Set<R>> evalForSetOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns Set<R>. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
resultType
- the type of the resulting set componentsognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,Set<R>> setOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForSetOf(Type, String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,R[]> evalForArrayOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Evaluates an OGNL expression which returns R[]. This expression can have parameters (specified as the varargs optionalParameters method parameter).
The following predefined variables can be used inside the expression:
resultType
- the type of the resulting array componentsognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public static <R> org.op4j.functions.Function<Object,R[]> arrayOf(org.javaruntype.type.Type<R> resultType, String ognlExpression, Object... optionalParameters)
Abbreviation for {evalForArrayOf(Type, String, Object...)
.
ognlExpression
- the OGNL expressionoptionalParameters
- the optional parameters
public R execute(T input, org.op4j.functions.ExecCtx ctx) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |