Package | Description |
---|---|
net.hydromatic.linq4j.expressions |
Object model for Java expressions.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNode
Abstract implementation of
Node . |
class |
BinaryExpression
Represents an expression that has a binary operator.
|
class |
BlockStatement
Represents a block that contains a sequence of expressions where variables
can be defined.
|
class |
ClassDeclaration
Declaration of a class.
|
class |
ConditionalExpression
Represents an expression that has a conditional operator.
|
class |
ConditionalStatement
Represents an expression that has a conditional operator.
|
class |
ConstantExpression
Represents an expression that has a constant value.
|
class |
ConstantUntypedNull
Represents a constant null of unknown type
Java allows type inference for such nulls, thus "null" cannot always be
replaced to (Object)null and vise versa.
|
class |
ConstructorDeclaration
Declaration of a constructor.
|
class |
DeclarationStatement
Expression that declares and optionally initializes a variable.
|
class |
DefaultExpression
Represents the default value of a type or an empty expression.
|
class |
DynamicExpression
Represents a dynamic operation.
|
class |
Expression
Analogous to LINQ's System.Linq.Expression.
|
class |
FieldDeclaration
Declaration of a field.
|
class |
ForStatement
Represents an infinite loop.
|
class |
FunctionExpression<F extends Function<?>>
Represents a strongly typed lambda expression as a data structure in the form
of an expression tree.
|
class |
GotoStatement
Represents an unconditional jump.
|
class |
IndexExpression
Represents indexing a property or array.
|
class |
InvocationExpression
Represents an expression that applies a delegate or lambda expression to a
list of argument expressions.
|
class |
LabelStatement
Represents a label, which can be put in any
Expression context. |
class |
LambdaExpression
Describes a lambda expression.
|
class |
ListInitExpression
Represents a constructor call that has a collection initializer.
|
class |
MemberDeclaration
Declaration of a member of a class.
|
class |
MemberExpression
Represents accessing a field or property.
|
class |
MemberInitExpression
Represents calling a constructor and initializing one or more members of the
new object.
|
class |
MethodCallExpression
Represents a call to either a static or an instance method.
|
class |
MethodDeclaration
Declaration of a method.
|
class |
NewArrayExpression
Represents creating a new array and possibly initializing the elements of the
new array.
|
class |
NewExpression
Represents a constructor call.
|
class |
ParameterExpression
Represents a named parameter expression.
|
class |
Statement
Statement.
|
class |
SwitchStatement
Represents a control expression that handles multiple selections by passing
control to
SwitchCase . |
class |
TernaryExpression
Represents an expression that has a ternary operator.
|
class |
ThrowStatement
Represents a
throw statement. |
class |
TryStatement
Represents a {@code try ...
|
class |
TypeBinaryExpression
Represents an operation between an expression and a type.
|
class |
UnaryExpression
Represents an expression that has a unary operator.
|
class |
WhileStatement
Represents a "while" statement.
|
Modifier and Type | Field and Description |
---|---|
List<Node> |
ConditionalStatement.expressionList |
Modifier and Type | Method and Description |
---|---|
Node |
AbstractNode.accept(Visitor visitor) |
Node |
Node.accept(Visitor visitor) |
Modifier and Type | Method and Description |
---|---|
static ConditionalStatement |
Expressions.ifThen(Expression test,
Node ifTrue)
Creates a ConditionalExpression that represents a conditional
block with an if statement.
|
static ConditionalStatement |
Expressions.ifThenElse(Expression test,
Node... nodes)
Creates a ConditionalExpression that represents a conditional
block with if and else statements:
if (test) stmt1 [ else if (test2) stmt2 ]... |
static ConditionalStatement |
Expressions.ifThenElse(Expression test,
Node ifTrue,
Node ifFalse)
Creates a ConditionalExpression that represents a conditional
block with if and else statements.
|
static BlockStatement |
Blocks.toBlock(Node body) |
static BlockStatement |
Blocks.toFunctionBlock(Node body) |
static String |
Expressions.toString(Node expression)
Converts an expression to Java source code.
|
Modifier and Type | Method and Description |
---|---|
static ConditionalStatement |
Expressions.ifThenElse(Iterable<? extends Node> nodes)
Creates a ConditionalExpression that represents a conditional
block with if and else statements:
if (test) stmt1 [ else if (test2) stmt2 ]... |
static String |
Expressions.toString(List<? extends Node> expressions,
String sep,
boolean generics)
Converts a list of expressions to Java source code, optionally emitting
extra type information in generics.
|
Statement |
OptimizeVisitor.visit(ConditionalStatement conditionalStatement,
List<Node> list) |
Statement |
Visitor.visit(ConditionalStatement conditionalStatement,
List<Node> list) |
Constructor and Description |
---|
ConditionalExpression(List<Node> expressionList,
Type type) |
ConditionalStatement(List<Node> expressionList) |
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.