Examples of accept()


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

    if (collectionExpression != null) {
      type = Object[].class;
    }
    else {
      selectExpression.accept(this);
    }
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

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

    public void visit(KeyExpression expression) {

      IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();

      // Create the Expression for the identification variable
      identificationVariable.accept(ExpressionBuilderVisitor.this);
      localExpression = new MapEntryExpression(queryExpression);

      // Retrieve the mapping's key mapping's descriptor
      descriptor = queryContext.resolveDescriptor(expression);
    }
View Full Code Here

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

      // Validate the JPQL query, which will use the JPQL grammar matching the validation level
      validate(queryContext, jpqlExpression);

      // Create the DatabaseQuery by visiting the parsed tree
      DatabaseQueryVisitor visitor = new DatabaseQueryVisitor(queryContext, jpqlQuery);
      jpqlExpression.accept(visitor);

      // Add the input parameter types to the DatabaseQuery
      if (query == null) {
        query = queryContext.getDatabaseQuery();
        addArguments(queryContext, query);
View Full Code Here

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

      // changed to a state field path expression. If so, it means it's an unqualified
      // path found in an UPDATE or DELETE query
      StateFieldPathExpression pathExpression = expression.isVirtual() ? expression.getStateFieldPathExpression() : null;

      if (pathExpression != null) {
        pathExpression.accept(this);
      }
      else {
        Declaration declaration = queryContext.findDeclaration(expression.getVariableName());

        // A null declaration Expression would mean it's the first package of an enum type
View Full Code Here

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

    else {

      TableExpression tableExpression = expression.getTableExpression();

      // Validate the table expression
      tableExpression.accept(this);

      // The identification variable is missing
      if (!expression.hasIdentificationVariable()) {

        int startPosition = position(expression) +
View Full Code Here

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

    if ((position == length + SPACE_LENGTH) && expression.hasSpaceAfterUpdateClause()) {

      virtualSpaces.add(SPACE_LENGTH);
      corrections.add(-length - 2);

      updateClause.accept(this);

      corrections.pop();
      virtualSpaces.pop();
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject.accept()

      StateObject decorator = stateObject.getDecorator();
      stateObject.decorate(null);

      try {
        decorator.accept(this);
      }
      finally {
        stateObject.decorate(decorator);
      }
    }
View Full Code Here

Examples of org.eclipse.persistence.platform.database.oracle.publisher.sqlrefl.SqlType.accept()

        int len = paramTypes.length;
        listener.beginMethod(method.getName(), len);
        SqlType returnType = (SqlType)method.getReturnType();
        if (returnType != null) {
            listener.handleMethodReturn(returnType.getName());
            returnType.accept(this);
        }
        String[] paramNames = method.getParamNames();
        int[] paramModes = method.getParamModes();
        for (int idx = 0; idx < len; idx++ ) {
            SqlType argType = (SqlType)paramTypes[idx];
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.Program.accept()

  public IMethod getOverriddenMethod() throws CoreException {
    try {
      Program ast = SharedASTProvider.getAST(method.getSourceModule(), SharedASTProvider.WAIT_YES, new NullProgressMonitor());
      if (ast != null) {
        OverriddenMethodFinder overriddenMethodFinder = new OverriddenMethodFinder();
        ast.accept(overriddenMethodFinder);

        return overriddenMethodFinder.getOverriddenMethod();
      }
    } catch (IOException e) {
      throw new CoreException(new Status(IStatus.ERROR, PEXCorePlugin.PLUGIN_ID, e.getMessage(), e));
View Full Code Here

Examples of org.eclipse.text.edits.TextEdit.accept()

        if (gendir != null) {
            try {
                File file = new File(gendir, m_name + ".java");
                FileWriter fwrit = new FileWriter(file);
                WriterVisitor visitor = new WriterVisitor(text, fwrit);
                edits.accept(visitor);
                visitor.finish();
                fwrit.flush();
                fwrit.close();
                s_logger.info("Generated class file " + file.getCanonicalPath() + " (writing AST took " + (System.currentTimeMillis()-start) + " ms.)");
            } catch (IOException e) {
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.