Package | Description |
---|---|
net.hydromatic.linq4j.expressions |
Object model for Java expressions.
|
Modifier and Type | Field and Description |
---|---|
ParameterExpression |
CatchBlock.parameter |
ParameterExpression |
DeclarationStatement.parameter |
ParameterExpression |
FieldDeclaration.parameter |
Modifier and Type | Field and Description |
---|---|
protected Map<Expression,ParameterExpression> |
DeterministicCodeOptimizer.dedup
The map that de-duplicates expressions, so the same expressions may reuse
the same final static fields.
|
protected Map<String,ParameterExpression> |
DeterministicCodeOptimizer.fieldsByName
The map of all the added final static fields.
|
List<ParameterExpression> |
FunctionExpression.parameterList |
List<ParameterExpression> |
ConstructorDeclaration.parameters |
List<ParameterExpression> |
MethodDeclaration.parameters |
Modifier and Type | Method and Description |
---|---|
protected ParameterExpression |
ClassDeclarationFinder.findDeclaredExpression(Expression expression)
Finds if there exists ready for reuse declaration for given expression.
|
protected ParameterExpression |
DeterministicCodeOptimizer.findDeclaredExpression(Expression expression)
Finds if there exists ready for reuse declaration for given expression.
|
static ParameterExpression |
Expressions.parameter(int modifiers,
Type type,
String name)
Creates a ParameterExpression.
|
static ParameterExpression |
Expressions.parameter(Type type)
Creates a ParameterExpression node that can be used to
identify a parameter or a variable in an expression tree.
|
static ParameterExpression |
Expressions.parameter(Type type,
String name)
Creates a ParameterExpression node that can be used to
identify a parameter or a variable in an expression tree.
|
static ParameterExpression |
Expressions.variable(Type type)
Creates a ParameterExpression node that can be used to
identify a parameter or a variable in an expression tree.
|
static ParameterExpression |
Expressions.variable(Type type,
String name)
Creates a ParameterExpression node that can be used to
identify a parameter or a variable in an expression tree.
|
Modifier and Type | Method and Description |
---|---|
static CatchBlock |
Expressions.catch_(ParameterExpression parameter,
Statement statement)
Creates a CatchBlock representing a catch statement with a
reference to the caught Exception object for use in the handler
body.
|
static DeclarationStatement |
Expressions.declare(int modifiers,
ParameterExpression parameter,
Expression initializer)
Creates a statement that declares a variable.
|
static FieldDeclaration |
Expressions.fieldDecl(int modifier,
ParameterExpression parameter)
Declares a field.
|
static FieldDeclaration |
Expressions.fieldDecl(int modifier,
ParameterExpression parameter,
Expression initializer)
Declares a field with an initializer.
|
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,
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,
ParameterExpression... parameters)
Creates a LambdaExpression by first constructing a delegate
type, using varargs.
|
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 CatchBlock |
Expressions.makeCatchBlock(Type type,
ParameterExpression variable,
Expression body,
Expression filter)
Creates a CatchBlock representing a catch statement with the
specified elements.
|
static net.hydromatic.linq4j.expressions.Expressions.RuntimeVariablesExpression |
Expressions.runtimeVariables(ParameterExpression... arguments)
Creates an instance of RuntimeVariablesExpression, using varargs.
|
Expression |
Visitor.visit(ParameterExpression parameterExpression) |
Modifier and Type | Method and Description |
---|---|
static ConstructorDeclaration |
Expressions.constructorDecl(int modifier,
Type declaredAgainst,
Iterable<? extends ParameterExpression> parameters,
BlockStatement body)
Declares a constructor.
|
static <F extends Function<?>> |
Expressions.lambda(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,
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,
Iterable<? extends ParameterExpression> parameters)
Creates a LambdaExpression by first constructing a delegate
type.
|
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 MethodDeclaration |
Expressions.methodDecl(int modifier,
Type resultType,
String name,
Iterable<? extends ParameterExpression> parameters,
BlockStatement body)
Declares a method.
|
static net.hydromatic.linq4j.expressions.Expressions.RuntimeVariablesExpression |
Expressions.runtimeVariables(Iterable<? extends ParameterExpression> expressions)
Creates an instance of RuntimeVariablesExpression.
|
Constructor and Description |
---|
CatchBlock(ParameterExpression parameter,
Statement body) |
DeclarationStatement(int modifiers,
ParameterExpression parameter,
Expression initializer) |
FieldDeclaration(int modifier,
ParameterExpression parameter,
Expression initializer) |
Constructor and Description |
---|
ConstructorDeclaration(int modifier,
Type declaredAgainst,
List<ParameterExpression> parameters,
BlockStatement body) |
FunctionExpression(Class<F> type,
BlockStatement body,
List<ParameterExpression> parameters) |
MethodDeclaration(int modifier,
String name,
Type resultType,
List<ParameterExpression> parameters,
BlockStatement body) |
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.