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<ArithmeticExpr> |
asArithmetic()
Get this expression as a arithmetic 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<GeoValueExpr> |
asGeometry()
Get this expression as a geometry 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<NumericValueExpr> |
asNumericValue()
Get this expression as a value expression
|
default Optional<TextExpr> |
asTextValue()
Get this expression as a string expression
|
default Optional<TemporalExpr> |
asTime()
Get this expression as a time expression
|
default Optional<UnaryExpr<?>> |
asUnary()
Get this expression as a unary expression
|
default boolean |
isArithmetic()
Check if this expression is a arithmetic expresion.
|
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 |
isGeometry()
Check if this expression is a geometry expresion.
|
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 |
isNumericValue()
Check if this expression is a number expression.
|
default boolean |
isTextValue()
Check if this expression is a string expression.
|
default boolean |
isTime()
Check if this expression is a time expresion.
|
default boolean |
isUnary()
Check if this expression is a unary expression.
|
default boolean isTextValue()
default Optional<TextExpr> asTextValue()
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 matchdefault boolean isArithmetic()
default Optional<ArithmeticExpr> asArithmetic()
Optional.empty() if the type does not matchdefault boolean isTime()
default Optional<TemporalExpr> asTime()
Optional.empty() if the type does not matchdefault boolean isGeometry()
default Optional<GeoValueExpr> asGeometry()
Optional.empty() if the type does not matchdefault boolean isNumericValue()
default Optional<NumericValueExpr> asNumericValue()
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–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.