Examples of toActualText()


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

      else {

        // Special case if what's before is 'IS' or 'IS NOT', then it's not appendable
        if (positionInCollection > 1) {
          Expression child = collectionExpression.getChild(positionInCollection - 1);
          String text = child.toActualText();
          appendable = !text.equals(IS) && !text.equals("IS NOT");
        }
        else {
          appendable = (positionInCollection > -1);
        }
View Full Code Here

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

          if (!isIdentificationVariableValidInComparison(variable)) {

            addProblem(
              rightExpression,
              ComparisonExpression_IdentificationVariable,
              rightExpression.toActualText(),
              expression.getComparisonOperator()
            );

            valid = false;
          }
View Full Code Here

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

          if ((mapping != null) && !helper.isPropertyMapping(mapping)) {

            addProblem(
              rightExpression,
              ComparisonExpression_AssociationField,
              rightExpression.toActualText(),
              expression.getComparisonOperator()
            );

            valid = false;
          }
View Full Code Here

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

              !isIdentificationVariableValidInComparison(variable)) {

            addProblem(
              rightExpression,
              ComparisonExpression_BasicField,
              rightExpression.toActualText(),
              expression.getComparisonOperator()
            );

            valid = false;
          }
View Full Code Here

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

        addProblem(
          expression,
          startPosition,
          endPosition,
          AbstractFromClause_InvalidFirstIdentificationVariableDeclaration,
          baseExpression.toActualText()
        );
      }
      else {
        declarationExpression.accept(this);
      }
View Full Code Here

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

      Expression rootObject = expression.getRootObject();
      int length = length(rootObject);

      // Right after "<abstract schema name> "
      if ((position >= 0) && (position <= length)) {
        String root = rootObject.toActualText();
        proposals.setClassNamePrefix(root.substring(0, position), ClassType.INSTANTIABLE);
      }
    }
  }
View Full Code Here

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

      Expression rootObject = expression.getRootObject();
      int length = length(rootObject);

      // Right after "<abstract schema name> "
      if ((position >= 0) && (position <= length)) {
        String root = rootObject.toActualText();
        proposals.setClassNamePrefix(root.substring(0, position), ClassType.INSTANTIABLE);
      }
    }
  }
View Full Code Here

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

        for (int index = children.size(); --index >= 0; ) {
          Expression child = children.get(index);

          // The child expression is not a JOIN expression
          if (!isValid(child, JoinBNF.ID)) {
            addProblem(child, IdentificationVariableDeclaration_InvalidJoin, child.toActualText());
          }
          // Validate the JOIN expression
          else {
            child.accept(this);
          }
View Full Code Here

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

        addProblem(
          expression,
          startPosition,
          endPosition,
          LikeExpression_InvalidEscapeCharacter,
          escapeCharacter.toActualText()
        );
      }
    }
    else {
      // Check for an input parameter
View Full Code Here

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

        addProblem(
          expression,
          startPosition,
          endPosition,
          LikeExpression_InvalidEscapeCharacter,
          escapeCharacter.toActualText()
        );
      }
    }
  }
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.