Package com.blazebit.expression
Interface Expression
-
- All Known Subinterfaces:
ArithmeticExpression
,Predicate
- All Known Implementing Classes:
AbstractExpression
,AbstractPredicate
,ArithmeticFactor
,BetweenPredicate
,ChainingArithmeticExpression
,CollectionLiteral
,ComparisonPredicate
,CompoundPredicate
,EntityLiteral
,EnumLiteral
,ExpressionPredicate
,FunctionInvocation
,InPredicate
,IsEmptyPredicate
,IsNullPredicate
,Literal
,Path
public interface Expression
The base interface for an expression.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Expression.ResultVisitor<T>
A visitor for an expression that produces a result as part of the visitation.static interface
Expression.Visitor
A visitor for an expression.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> T
accept(Expression.ResultVisitor<T> visitor)
Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.void
accept(Expression.Visitor visitor)
Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.com.blazebit.domain.runtime.model.DomainType
getType()
Returns the domain type of this expression.default Set<Path>
getUsedPaths()
Returns the paths that are used in this expression.
-
-
-
Method Detail
-
getType
com.blazebit.domain.runtime.model.DomainType getType()
Returns the domain type of this expression.- Returns:
- the domain type of this expression
-
accept
void accept(Expression.Visitor visitor)
Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.- Parameters:
visitor
- The visitor to call visit on
-
accept
<T> T accept(Expression.ResultVisitor<T> visitor)
Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.- Type Parameters:
T
- The result type- Parameters:
visitor
- The visitor to call visit on- Returns:
- the value as returned by the result visitor
-
-