| Package | Description |
|---|---|
| org.apache.calcite.linq4j.tree |
Object model for Java expressions.
|
| Modifier and Type | Method and Description |
|---|---|
static NewExpression |
Expressions.new_(Constructor constructor)
Creates a NewExpression that represents calling the specified
constructor that takes no arguments.
|
static NewExpression |
Expressions.new_(Constructor constructor,
Expression... expressions)
Creates a NewExpression that represents calling the specified
constructor with the specified arguments, using varargs.
|
static NewExpression |
Expressions.new_(Constructor constructor,
Iterable<? extends Expression> expressions)
Creates a NewExpression that represents calling the specified
constructor with the specified arguments.
|
static NewExpression |
Expressions.new_(Constructor constructor,
Iterable<? extends Expression> expressions,
Iterable<? extends MemberDeclaration> memberDeclarations)
Creates a NewExpression that represents calling the specified
constructor with the specified arguments.
|
static NewExpression |
Expressions.new_(Constructor constructor,
Iterable<? extends Expression> expressions,
MemberDeclaration... memberDeclarations)
Creates a NewExpression that represents calling the specified
constructor with the specified arguments, using varargs.
|
static NewExpression |
Expressions.new_(Type type)
Creates a NewExpression that represents calling the
parameterless constructor of the specified type.
|
static NewExpression |
Expressions.new_(Type type,
Expression... arguments)
Creates a NewExpression that represents calling the constructor of the
specified type whose parameters are assignable from the specified
arguments, using varargs.
|
static NewExpression |
Expressions.new_(Type type,
Iterable<? extends Expression> arguments)
Creates a NewExpression that represents calling the constructor of the
specified type whose parameters are assignable from the specified
arguments.
|
static NewExpression |
Expressions.new_(Type type,
Iterable<? extends Expression> arguments,
Iterable<? extends MemberDeclaration> memberDeclarations)
Creates a NewExpression that represents calling the constructor of the
specified type whose parameters are assignable from the specified
arguments.
|
static NewExpression |
Expressions.new_(Type type,
Iterable<? extends Expression> arguments,
MemberDeclaration... memberDeclarations)
Creates a NewExpression that represents calling the constructor of the
specified type whose parameters are assignable from the specified
arguments, using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DeterministicCodeOptimizer.isConstructorDeterministic(NewExpression newExpression)
Checks if new instance creation can be reused.
|
static ListInitExpression |
Expressions.listInit(NewExpression newExpression,
ElementInit... elementInits)
Creates a ListInitExpression that uses specified ElementInit
objects to initialize a collection, using varargs.
|
static ListInitExpression |
Expressions.listInit(NewExpression newExpression,
Expression... arguments)
Creates a ListInitExpression that uses a method named "Add" to
add elements to a collection, using varargs.
|
static ListInitExpression |
Expressions.listInit(NewExpression newExpression,
Iterable<? extends ElementInit> elementInits)
Creates a ListInitExpression that uses specified ElementInit
objects to initialize a collection.
|
static ListInitExpression |
Expressions.listInit(NewExpression newExpression,
Method method,
Expression... arguments)
Creates a ListInitExpression that uses a specified method to
add elements to a collection, using varargs.
|
static ListInitExpression |
Expressions.listInit(NewExpression newExpression,
Method method,
Iterable<? extends Expression> arguments)
Creates a ListInitExpression that uses a specified method to
add elements to a collection.
|
static ListInitExpression |
Expressions.listInitE(NewExpression newExpression,
Iterable<? extends Expression> arguments)
Creates a ListInitExpression that uses a method named "Add" to
add elements to a collection.
|
static MemberInitExpression |
Expressions.memberInit(NewExpression newExpression,
Iterable<? extends MemberBinding> bindings)
Represents an expression that creates a new object and
initializes a property of the object.
|
static MemberInitExpression |
Expressions.memberInit(NewExpression newExpression,
MemberBinding... bindings)
Represents an expression that creates a new object and
initializes a property of the object, using varargs.
|
Shuttle |
ClassDeclarationFinder.preVisit(NewExpression newExpression)
Creates optimizer local to the newly generated anonymous class.
|
Shuttle |
Shuttle.preVisit(NewExpression newExpression) |
protected Expression |
ClassDeclarationFinder.tryOptimizeNewInstance(NewExpression newExpression)
Optimizes
new Type() constructs. |
protected Expression |
DeterministicCodeOptimizer.tryOptimizeNewInstance(NewExpression newExpression)
Optimizes
new Type() constructs, |
R |
VisitorImpl.visit(NewExpression newExpression) |
R |
Visitor.visit(NewExpression newExpression) |
Expression |
ClassDeclarationFinder.visit(NewExpression newExpression,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Expression |
Shuttle.visit(NewExpression newExpression,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Copyright © 2012–2023 The Apache Software Foundation. All rights reserved.