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

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


          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

          int startPosition = position(expression);
          int endPosition   = startPosition + length(leftExpression);
          addProblem(expression, startPosition, endPosition, InExpression_InvalidExpression);
        }
        else {
          leftExpression.accept(this);
        }
      }
      // Validate the expression
      else if (!isValid(leftExpression, queryBNF) || isDateTimeConstant(leftExpression)) {
        int startPosition = position(expression);
View Full Code Here

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

    // Check for "IN :input_parameter" defined in JPA 2.0
    boolean singleInputParameter = isNewerThanOrEqual(JPAVersion.VERSION_2_0) &&
View Full Code Here

      else if (!isValid(inItems, expression.getExpressionItemQueryBNFId())) {
        addProblem(inItems, InExpression_ItemInvalidExpression);
      }
      // Validate the single item
      else {
        inItems.accept(this);
      }
    }

    // Missing ')'
    if (!singleInputParameter    &&
View Full Code Here

        int endPosition   = startPosition + length(joinAssociationPath);
        addProblem(expression, startPosition, endPosition, Join_InvalidJoinAssociationPath);
      }
      // Validate join association path
      else {
        joinAssociationPath.accept(this);
      }
    }

    // Missing identification variable
    // A JOIN expression always needs an identification variable
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.