public abstract class Expression extends AbstractNode
Analogous to LINQ's System.Linq.Expression.
nodeType, type
Constructor and Description |
---|
Expression(ExpressionType nodeType,
Type type)
Creates an Expression.
|
Modifier and Type | Method and Description |
---|---|
abstract Expression |
accept(Visitor visitor) |
boolean |
canReduce()
Indicates that the node can be reduced to a simpler node.
|
accept, equals, evaluate, getNodeType, getType, hashCode, toString
public Expression(ExpressionType nodeType, Type type)
The type of the expression may, at the caller's discretion, be a
regular class (because Class
implements Type
) or it may
be a different implementation that retains information about type
parameters.
nodeType
- Node typetype
- Type of the expressionpublic abstract Expression accept(Visitor visitor)
accept
in interface Node
accept
in class AbstractNode
public boolean canReduce()
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.