Class AbstractSingleEncapsulatedExpression

    • Method Detail

      • getEncapsulatedExpressionQueryBNFId

        public abstract java.lang.String getEncapsulatedExpressionQueryBNFId()
        Returns the BNF used to parse the encapsulated expression.
        Returns:
        The BNF used to parse the encapsulated expression
      • getExpression

        public final Expression getExpression()
        Returns the Expression that is encapsulated within parenthesis.
        Returns:
        The Expression that is encapsulated within parenthesis
      • hasEncapsulatedExpression

        public boolean hasEncapsulatedExpression()
        Determines whether something was parsed after the left parenthesis.
        Specified by:
        hasEncapsulatedExpression in class AbstractEncapsulatedExpression
        Returns:
        true if something was parsed; false otherwise
      • hasExpression

        public final boolean hasExpression()
        Determines whether the encapsulated expression of the query was parsed.
        Returns:
        true if the encapsulated expression was parsed; false if it was not parsed
      • setExpression

        public final void setExpression​(AbstractExpression expression)
        Manually sets the encapsulated Expression to become the given one.
        Parameters:
        expression - The new encapsulated Expression, which cannot be null
        Throws:
        java.lang.NullPointerException - The given AbstractExpression cannot be null