Interface CqnToken

All Superinterfaces:
JSONizable
All Known Subinterfaces:
BooleanFunction, BooleanValue, CqnArithmeticExpression, CqnArithmeticNegation, CqnBetweenPredicate, CqnBooleanLiteral, CqnComparisonPredicate, CqnConnectivePredicate, CqnContainmentTest, CqnElementRef, CqnEtagPredicate, CqnExistsSubquery, CqnExpand, CqnExpression, CqnFunc, CqnInline, CqnInPredicate, CqnJoin, CqnListValue, CqnLiteral<T>, CqnMatchPredicate, CqnNegation, CqnNullValue, CqnNumericLiteral<N>, CqnParameter, CqnPlain, CqnPredicate, CqnReference, CqnSearchPredicate, CqnSelect, CqnSelectList, CqnSelectListItem, CqnSelectListValue, CqnSortSpecification, CqnSource, CqnStringLiteral, CqnStructuredLiteral, CqnStructuredTypeRef, CqnTemporalLiteral<E>, CqnValue, CqnVector, ElementRef<T>, Expand<T>, FunctionCall<T>, Literal<T>, NullValue, Parameter<T>, Predicate, Source<T>, StructuredType<T>, StructuredTypeRef, Value<T>
All Known Implementing Classes:
CqnStar, Select

public interface CqnToken extends JSONizable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(CqnVisitor visitor)
    Traverses the expression tree represented by this token with a given visitor.
    default Stream<CqnToken>
     

    Methods inherited from interface com.sap.cds.JSONizable

    toJson
  • Method Details

    • accept

      void accept(CqnVisitor visitor)
      Traverses the expression tree represented by this token with a given visitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children's accept methods. Afterwards this token is passed to the visitor's visit method specific for this token's type.
      Parameters:
      visitor - the CqnVisitor
    • tokens

      @Beta default Stream<CqnToken> tokens()