Package org.eclipse.persistence.jpa.jpql.parser

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.accept()


        addProblem(expression, startPosition, endPosition, OnClause_InvalidConditionalExpression);
      }
      // Validate the conditional expression
      else {
        conditionalExpression.accept(this);
      }
    }
  }

  /**
 
View Full Code Here


        int endPosition   = startPosition + length(rootObject);

        addProblem(expression, startPosition, endPosition, RangeVariableDeclaration_InvalidRootObject);
      }
      else {
        rootObject.accept(this);
      }
    }

    // Missing identification variable
    if (!expression.hasIdentificationVariable() &&
View Full Code Here

          int endPosition   = startPosition + length(conditionalExpression);
          addProblem(expression, startPosition, endPosition, invalidConditionalExpressionMessageKey);
        }

        // Visit the conditional expression
        conditionalExpression.accept(this);
      }
    }
  }

  /**
 
View Full Code Here

        AbstractFromClause_IdentificationVariableDeclarationEndsWithComma,
        AbstractFromClause_IdentificationVariableDeclarationIsMissingComma
      );

      // Validate the declaration
      declaration.accept(this);
    }
  }

  /**
   * Validates the select expression of the given <code>SELECT</code> clause. The select expression
View Full Code Here

          addProblem(selectExpression, startPosition, endPosition, SimpleSelectClause_NotSingleExpression);
        }
        // Visit the select expression
        else {
          selectExpression.accept(this);
        }
      }
      // The select expression is not valid
      else if (!isValid(selectExpression, expression.getSelectItemQueryBNFId())) {
View Full Code Here

        addProblem(expression, startPosition, endPosition, AbstractSelectClause_InvalidSelectExpression);
      }
      // Visit the select expression
      else {
        selectExpression.accept(this);
      }
    }
  }

  protected void validateAbstractSelectStatement(AbstractSelectStatement expression) {
View Full Code Here

        int startPosition = position(expression);
        int endPosition   = startPosition + length(leftExpression);
        addProblem(expression, startPosition, endPosition, invalidLeftExpression);
      }
      else {
        leftExpression.accept(this);
      }
    }

    // Missing right expression
    if (!expression.hasRightExpression()) {
View Full Code Here

        int endPosition = startPosition + length(rightExpression);

        addProblem(expression, startPosition, endPosition, invalidRightExpression);
      }
      else {
        rightExpression.accept(this);
      }
    }
  }

  protected void validateIdentificationVariableDeclaration(IdentificationVariableDeclaration expression) {
View Full Code Here

        );

        // Make sure each child is a JOIN expression
        for (int index = children.size(); --index >= 0; ) {
          Expression child = children.get(index);
          child.accept(this);
        }
      }
      // Make sure the single expression is a JOIN expression
      // Validate the JOIN expression
      else {
View Full Code Here

        int startIndex = position(expression) + 1;
        int endIndex   = startIndex;
        addProblem(expression, startIndex, endIndex, ArithmeticFactor_InvalidExpression);
      }
      else {
        arithmeticExpression.accept(this);
      }
    }
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.