public interface Expr
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
accept(ExprVisitor<T,X> visitor)
Accepts
visitor for this expression. |
default Optional<BinaryExpr<?>> |
asBinary()
Get this expression as a binary expression
|
default Optional<BooleanExpr> |
asBoolean()
Get this expression as a boolean expression
|
default Optional<BooleanBinaryExpr> |
asBooleanBinary()
Get this expression as a boolean binary expression
|
default Optional<BooleanUnaryExpr> |
asBooleanUnary()
Get this expression as a boolean unary expression
|
default Optional<ComparisonExpr> |
asComparison()
Get this expression as a comparison expression
|
default Optional<MemberExpr> |
asMember()
Get this expression as a member expression
|
default Optional<MethodCallExpr> |
asMethodCall()
Get this expression as a method call expression
|
default Optional<UnaryExpr<?>> |
asUnary()
Get this expression as a unary expression
|
default Optional<ValueExpr> |
asValue()
Get this expression as a value expression
|
default boolean |
isBinary()
Check if this expression is a binary expression.
|
default boolean |
isBoolean()
Check if this expression is a boolean expresion.
|
default boolean |
isBooleanBinary()
Check if this expression is a boolean binary expression.
|
default boolean |
isBooleanUnary()
Check if this expression is a boolean unary expression.
|
default boolean |
isComparison()
Check if this expression is a comparison expression.
|
default boolean |
isMember()
Check if this expression is a member expression.
|
default boolean |
isMethodCall()
Check if this expression is a method call expression.
|
default boolean |
isUnary()
Check if this expression is a unary expression.
|
default boolean |
isValue()
Check if this expression is a value expression.
|
default boolean isValue()
default Optional<ValueExpr> asValue()
Optional.empty() if the type does not matchdefault boolean isMember()
default Optional<MemberExpr> asMember()
Optional.empty() if the type does not matchdefault boolean isBinary()
default Optional<BinaryExpr<?>> asBinary()
Optional.empty() if the type does not matchdefault boolean isBooleanBinary()
default Optional<BooleanBinaryExpr> asBooleanBinary()
Optional.empty() if the type does not matchdefault boolean isComparison()
default Optional<ComparisonExpr> asComparison()
Optional.empty() if the type does not matchdefault boolean isUnary()
default Optional<UnaryExpr<?>> asUnary()
Optional.empty() if the type does not matchdefault boolean isBooleanUnary()
default Optional<BooleanUnaryExpr> asBooleanUnary()
Optional.empty() if the type does not matchdefault boolean isMethodCall()
default Optional<MethodCallExpr> asMethodCall()
Optional.empty() if the type does not matchdefault boolean isBoolean()
default Optional<BooleanExpr> asBoolean()
Optional.empty() if the type does not match<T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
visitor for this expression.T - the visitor's return typeX - the exception type the visitor may throwvisitor - the visitorX - if the visitor fails to visit this expressionX extends ThrowableCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.