Package | Description |
---|---|
net.hydromatic.linq4j.expressions |
Object model for Java expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
BlockStatement
Represents a block that contains a sequence of expressions where variables
can be defined.
|
class |
ConditionalStatement
Represents an expression that has a conditional operator.
|
class |
DeclarationStatement
Expression that declares and optionally initializes a variable.
|
class |
ForStatement
Represents an infinite loop.
|
class |
GotoStatement
Represents an unconditional jump.
|
class |
LabelStatement
Represents a label, which can be put in any
Expression context. |
class |
SwitchStatement
Represents a control expression that handles multiple selections by passing
control to
SwitchCase . |
class |
ThrowStatement
Represents a
throw statement. |
class |
TryStatement
Represents a {@code try ...
|
class |
WhileStatement
Represents a "while" statement.
|
Modifier and Type | Field and Description |
---|---|
Statement |
CatchBlock.body |
Statement |
WhileStatement.body |
Statement |
TryStatement.body |
Statement |
ForStatement.body |
static Statement |
OptimizeVisitor.EMPTY_STATEMENT |
Statement |
TryStatement.fynally |
Modifier and Type | Field and Description |
---|---|
List<Statement> |
BlockStatement.statements |
Modifier and Type | Method and Description |
---|---|
Statement |
ThrowStatement.accept(Visitor visitor) |
Statement |
GotoStatement.accept(Visitor visitor) |
abstract Statement |
Statement.accept(Visitor visitor) |
Statement |
ConditionalStatement.accept(Visitor visitor) |
Statement |
WhileStatement.accept(Visitor visitor) |
Statement |
TryStatement.accept(Visitor visitor) |
Statement |
SwitchStatement.accept(Visitor visitor) |
static Statement |
Expressions.statement(Expression expression)
Creates a statement that executes an expression.
|
Statement |
OptimizeVisitor.visit(ConditionalStatement conditionalStatement,
List<Node> list) |
Statement |
Visitor.visit(ConditionalStatement conditionalStatement,
List<Node> list) |
Statement |
Visitor.visit(GotoStatement gotoStatement,
Expression expression) |
Statement |
Visitor.visit(SwitchStatement switchStatement) |
Statement |
Visitor.visit(ThrowStatement throwStatement,
Expression expression) |
Statement |
Visitor.visit(TryStatement tryStatement) |
Statement |
Visitor.visit(WhileStatement whileStatement,
Expression condition,
Statement body) |
Modifier and Type | Method and Description |
---|---|
void |
BlockBuilder.add(Statement statement) |
static BlockStatement |
Expressions.block(Statement... statements)
Creates a BlockExpression that contains the given statements,
using varargs.
|
static BlockStatement |
Expressions.block(Type type,
Statement... statements)
Creates a BlockExpression that contains the given statements
and has a specific result type, using varargs.
|
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 BlockStatement |
Blocks.create(Statement statement,
BlockStatement block)
Prepends a statement to a block.
|
static ForStatement |
Expressions.for_(DeclarationStatement declaration,
Expression condition,
Expression post,
Statement body)
Creates a LoopExpression with the given body.
|
static ForStatement |
Expressions.for_(Iterable<? extends DeclarationStatement> declarations,
Expression condition,
Expression post,
Statement body)
Creates a LoopExpression with the given body.
|
static TryStatement |
Expressions.tryCatch(Statement body,
CatchBlock... handlers)
Creates a TryExpression representing a try block with any
number of catch statements and neither a fault nor finally
block, with varargs.
|
static TryStatement |
Expressions.tryCatch(Statement body,
Iterable<? extends CatchBlock> handlers)
Creates a TryExpression representing a try block with any
number of catch statements and neither a fault nor finally
block.
|
static TryStatement |
Expressions.tryCatchFinally(Statement body,
Iterable<? extends CatchBlock> handlers,
Statement finally_)
Creates a TryExpression representing a try block with any
number of catch statements and a finally block.
|
static TryStatement |
Expressions.tryCatchFinally(Statement body,
Statement finally_,
CatchBlock... handlers)
Creates a TryExpression representing a try block with any
number of catch statements and a finally block, with varargs.
|
static TryStatement |
Expressions.tryFinally(Statement body,
Statement finally_)
Creates a TryExpression representing a try block with a
finally block and no catch statements.
|
ForStatement |
Visitor.visit(ForStatement forStatement,
List<DeclarationStatement> declarations,
Expression condition,
Expression post,
Statement body) |
Statement |
Visitor.visit(WhileStatement whileStatement,
Expression condition,
Statement body) |
static WhileStatement |
Expressions.while_(Expression condition,
Statement body)
Creates a WhileExpression representing a while loop.
|
Modifier and Type | Method and Description |
---|---|
static BlockStatement |
Expressions.block(Iterable<? extends Statement> statements)
Creates a BlockExpression that contains the given statements.
|
static BlockStatement |
Expressions.block(Type type,
Iterable<? extends Statement> expressions)
Creates a BlockExpression that contains the given expressions,
has no variables and has specific result type.
|
BlockStatement |
Visitor.visit(BlockStatement blockStatement,
List<Statement> statements) |
Constructor and Description |
---|
CatchBlock(ParameterExpression parameter,
Statement body) |
ForStatement(List<DeclarationStatement> declarations,
Expression condition,
Expression post,
Statement body) |
TryStatement(Statement body,
List<CatchBlock> catchBlocks,
Statement fynally) |
WhileStatement(Expression condition,
Statement body) |
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.