Interface CqnParameter

All Superinterfaces:
CqnToken, CqnValue, JSONizable
All Known Subinterfaces:
Parameter<T>

public interface CqnParameter extends CqnValue
  • Method Details

    • name

      String name()
      Returns the name of this parameter
      Returns:
      the name of this parameter
    • asParameter

      default CqnParameter asParameter()
      Description copied from interface: CqnValue
      Casts this value to CqnParameter.
      Specified by:
      asParameter in interface CqnValue
      Returns:
      this value as a parameter
    • isParameter

      default boolean isParameter()
      Description copied from interface: CqnValue
      Returns true if this is a CqnParameter.
      Specified by:
      isParameter in interface CqnValue
      Returns:
      true if this is a parameter, otherwise false
    • isPositional

      default boolean isPositional()
      Returns true if this is a positional parameter.
      Returns:
      true if this is a positional parameter, otherwise false
    • accept

      default void accept(CqnVisitor visitor)
      Description copied from interface: CqnToken
      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.
      Specified by:
      accept in interface CqnToken
      Parameters:
      visitor - the CqnVisitor