Package | Description |
---|---|
net.hydromatic.linq4j.expressions |
Object model for Java expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassDeclaration
Declaration of a class.
|
class |
ConstructorDeclaration
Declaration of a constructor.
|
class |
FieldDeclaration
Declaration of a field.
|
class |
MethodDeclaration
Declaration of a method.
|
Modifier and Type | Field and Description |
---|---|
protected List<MemberDeclaration> |
ClassDeclarationFinder.addedDeclarations
The list of new final static fields to be added to the current class.
|
List<MemberDeclaration> |
NewExpression.memberDeclarations |
List<MemberDeclaration> |
ClassDeclaration.memberDeclarations |
Modifier and Type | Method and Description |
---|---|
MemberDeclaration |
ConstructorDeclaration.accept(Visitor visitor) |
abstract MemberDeclaration |
MemberDeclaration.accept(Visitor visitor) |
MemberDeclaration |
MethodDeclaration.accept(Visitor visitor) |
MemberDeclaration |
FieldDeclaration.accept(Visitor visitor) |
MemberDeclaration |
Visitor.visit(ConstructorDeclaration constructorDeclaration,
BlockStatement body) |
MemberDeclaration |
DeterministicCodeOptimizer.visit(FieldDeclaration fieldDeclaration,
Expression initializer) |
MemberDeclaration |
Visitor.visit(FieldDeclaration fieldDeclaration,
Expression initializer) |
MemberDeclaration |
Visitor.visit(MethodDeclaration methodDeclaration,
BlockStatement body) |
Modifier and Type | Method and Description |
---|---|
protected List<MemberDeclaration> |
ClassDeclarationFinder.optimizeDeclarations(List<MemberDeclaration> memberDeclarations)
Adds new declarations (e.g.
|
Modifier and Type | Method and Description |
---|---|
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,
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 |
---|---|
static ClassDeclaration |
Expressions.classDecl(int modifier,
String name,
Type extended,
List<Type> implemented,
List<MemberDeclaration> memberDeclarations)
Declares a class.
|
protected void |
ClassDeclarationFinder.learnFinalStaticDeclarations(List<MemberDeclaration> memberDeclarations)
Processes the list of declarations when class expression detected.
|
protected void |
DeterministicCodeOptimizer.learnFinalStaticDeclarations(List<MemberDeclaration> memberDeclarations)
Processes the list of declarations and learns final static ones as
effectively constant.
|
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_(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.
|
protected List<MemberDeclaration> |
ClassDeclarationFinder.optimizeDeclarations(List<MemberDeclaration> memberDeclarations)
Adds new declarations (e.g.
|
ClassDeclaration |
ClassDeclarationFinder.visit(ClassDeclaration classDeclaration,
List<MemberDeclaration> memberDeclarations) |
ClassDeclaration |
Visitor.visit(ClassDeclaration classDeclaration,
List<MemberDeclaration> memberDeclarations) |
Expression |
ClassDeclarationFinder.visit(NewExpression newExpression,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Expression |
Visitor.visit(NewExpression newExpression,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Constructor and Description |
---|
ClassDeclaration(int modifier,
String name,
Type extended,
List<Type> implemented,
List<MemberDeclaration> memberDeclarations) |
NewExpression(Type type,
List<Expression> arguments,
List<MemberDeclaration> memberDeclarations) |
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.