Interface Expression<T>

Type Parameters:
T - expression type
All Superinterfaces:
Serializable
All Known Subinterfaces:
ArrayExpression<A,T>, CollectionExpression<T,E>, Constant<T>, EntityPath<T>, ExtendedSubQuery<T>, FactoryExpression<T>, GroupExpression<T,R>, ListExpression<E,Q>, MapExpression<K,V>, Operation<T>, ParameterizedExpression<T>, ParamExpression<T>, Path<T>, Predicate, SubQueryExpression<T>, TemplateExpression<T>
All Known Implementing Classes:
AbstractGroupExpression, ArrayConstructorExpression, ArrayPath, BeanPath, BooleanBuilder, BooleanExpression, BooleanOperation, BooleanPath, BooleanTemplate, Coalesce, CollectionExpressionBase, CollectionOperation, CollectionPath, CollectionPathBase, ComparableEntityPath, ComparableExpression, ComparableExpressionBase, ComparableOperation, ComparablePath, ComparableTemplate, ConstantHidingExpression, ConstantImpl, ConstructorExpression, DateExpression, DateOperation, DatePath, DateTemplate, DateTimeExpression, DateTimeOperation, DateTimePath, DateTimeTemplate, DslExpression, DslOperation, DslPath, DslTemplate, EntityPathBase, EnumConversion, EnumExpression, EnumOperation, EnumPath, EnumTemplate, ExpressionBase, FactoryExpressionBase, FactoryExpressionUtils.FactoryExpressionAdapter, FetchableSubQueryBase, ListPath, LiteralExpression, MapExpressionBase, MapPath, MappingProjection, MixinGroupExpression, MutableExpressionBase, NullExpression, NumberConversion, NumberConversions, NumberExpression, NumberOperation, NumberPath, NumberTemplate, OperationImpl, Param, ParameterizedPathImpl, ParamExpressionImpl, PathBuilder, PathImpl, PredicateOperation, PredicateTemplate, QBean, QList, QMap, QPair, QTuple, SetPath, SimpleExpression, SimpleOperation, SimplePath, SimpleTemplate, StringExpression, StringOperation, StringPath, StringTemplate, SubQueryExpressionImpl, TemplateExpressionImpl, TemporalExpression, TimeExpression, TimeOperation, TimePath, TimeTemplate

public interface Expression<T> extends Serializable
Expression defines a general typed expression in a Query instance. The generic type parameter is a reference to the type the expression is bound to.

The central Expression subinterfaces are

Author:
tiwe
  • Method Summary

    Modifier and Type
    Method
    Description
    <R, C> R
    accept(Visitor<R,C> v, C context)
    Accept the visitor with the given context
    Class<? extends T>
    Get the java type for this expression
  • Method Details

    • accept

      @Nullable <R, C> R accept(Visitor<R,C> v, @Nullable C context)
      Accept the visitor with the given context
      Type Parameters:
      R - return type
      C - context type
      Parameters:
      v - visitor
      context - context of visit
      Returns:
      result of visit
    • getType

      Class<? extends T> getType()
      Get the java type for this expression
      Returns:
      type of expression