Package | Description |
---|---|
net.hydromatic.linq4j.expressions |
Object model for Java expressions.
|
net.hydromatic.linq4j.function |
Contains definitions of functions and predicates.
|
Modifier and Type | Class and Description |
---|---|
class |
FunctionExpression<F extends Function<?>>
Represents a strongly typed lambda expression as a data structure in the form
of an expression tree.
|
Modifier and Type | Field and Description |
---|---|
F |
FunctionExpression.function |
Modifier and Type | Method and Description |
---|---|
static <F extends Function<?>> |
Expressions.lambda(BlockStatement body,
Iterable<? extends ParameterExpression> parameters)
Creates a LambdaExpression by first constructing a delegate
type.
|
static <F extends Function<?>> |
Expressions.lambda(BlockStatement body,
ParameterExpression... parameters)
Creates a LambdaExpression by first constructing a delegate
type, using varargs.
|
static <T,F extends Function<? extends T>> |
Expressions.lambda(Class<F> type,
BlockStatement body,
Iterable<? extends ParameterExpression> parameters)
Creates a LambdaExpression by first constructing a delegate
type.
|
static <T,F extends Function<? extends T>> |
Expressions.lambda(Class<F> type,
BlockStatement body,
ParameterExpression... parameters)
Creates a LambdaExpression by first constructing a delegate
type, using varargs.
|
static <T,F extends Function<? extends T>> |
Expressions.lambda(Class<F> type,
Expression body,
Iterable<? extends ParameterExpression> parameters)
Creates a LambdaExpression by first constructing a delegate
type.
|
static <T,F extends Function<? extends T>> |
Expressions.lambda(Class<F> type,
Expression body,
ParameterExpression... parameters)
Creates a LambdaExpression by first constructing a delegate
type, using varargs.
|
static <F extends Function<?>> |
Expressions.lambda(Expression body,
Iterable<? extends ParameterExpression> parameters)
Creates an Expression where the delegate type
F is
known at compile time. |
static <F extends Function<?>> |
Expressions.lambda(Expression body,
ParameterExpression... parameters)
Creates an Expression where the delegate type
F is
known at compile time, using varargs. |
static <F extends Function<?>> |
Expressions.lambda(F function)
Creates a FunctionExpression from an actual function.
|
<T extends Function<?>> |
ExpressionVisitor.visitLambda(FunctionExpression<T> expression)
Visits the children of the delegate expression.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BigDecimalFunction1<T0>
Function that takes one parameter and returns a
BigDecimal value. |
interface |
DoubleFunction1<T0>
Function that takes one parameter and returns a native
double value. |
interface |
FloatFunction1<T0>
Function that takes one parameter and returns a native
float value. |
interface |
Function0<R>
Function with no parameters.
|
interface |
Function1<T0,R>
Function with one parameter.
|
interface |
Function2<T0,T1,R>
Function with two parameters.
|
interface |
IntegerFunction1<T0>
Function that takes one parameter and returns a native
int value. |
interface |
LongFunction1<T0>
Function that takes one parameter and returns a native
long value. |
interface |
NullableBigDecimalFunction1<T0>
Function that takes one parameter and returns a
BigDecimal value that
may be null. |
interface |
NullableDoubleFunction1<T0>
Function that takes one parameter and returns a
Double value that
may be null. |
interface |
NullableFloatFunction1<T0>
Function that takes one parameter and returns a
Float value that
may be null. |
interface |
NullableIntegerFunction1<T0>
Function that takes one parameter and returns an
Integer value that
may be null. |
interface |
NullableLongFunction1<T0>
Function that takes one parameter and returns a
Long value that
may be null. |
interface |
Predicate1<T0>
Function with one parameter returning a native
boolean value. |
interface |
Predicate2<T0,T1>
Function with two parameters returning a native
boolean value. |
Modifier and Type | Field and Description |
---|---|
static Map<Class<? extends Function>,Class> |
Functions.FUNCTION_RESULT_TYPES |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Function> |
Functions.functionClass(Type aClass)
Returns the appropriate interface for a lambda function with
1 argument and the given return type.
|
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.