Examples of accept()


Examples of org.eclipse.wb.draw2d.Figure.accept()

  }

  private AbstractPopupFigure getAlignFigure(final int width, final int height) {
    final AbstractPopupFigure[] popupFigure = {null};
    Figure layer = m_viewerCanvas.getLayer(IEditPartViewer.CLICKABLE_LAYER);
    layer.accept(new FigureVisitor() {
      private final int MARGIN = 6;

      @Override
      public void endVisit(Figure figure) {
        if (figure instanceof AbstractPopupFigure) {
View Full Code Here

Examples of org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept()

      if(transientValues.isValueTransient(semanticObject, RoutePackage.Literals.VARIABLE__NAME) == ValueTransient.YES)
        errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RoutePackage.Literals.VARIABLE__NAME));
    }
    INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
    SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
    feeder.accept(grammarAccess.getVariableAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
    feeder.finish();
  }
}
View Full Code Here

Examples of org.eclipsecon.gwt.chattr.client.ChatEvent.accept()

    Iterator iter = clientEvents.iterator();
    while (iter.hasNext()) {
      ChatEvent chatEvent = (ChatEvent) iter.next();

      chatEvent.accept(eventHandler);
    }
  }

  /**
   * Propagates an event to a set of users.
View Full Code Here

Examples of org.eigenbase.rel.RelNode.accept()

    /* Traverse the tree and replace the convert_from, convert_to function to actual implementations
     * Eg: convert_from(EXPR, 'JSON') be converted to convert_fromjson(EXPR);
     * TODO: Ideally all function rewrites would move here instead of DrillOptiq
     */
    rel = rel.accept(new RewriteProjectRel(planner.getTypeFactory(), context.getDrillOperatorTable()));
    log("Optiq Logical", rel);
    DrillRel drel = convertToDrel(rel);
    log("Drill Logical", drel);
    Prel prel = convertToPrel(drel);
    log("Drill Physical", prel);
View Full Code Here

Examples of org.eigenbase.rex.RexInputRef.accept()

    if (groupBy != null) {
      ASTBuilder b = ASTBuilder.construct(HiveParser.TOK_GROUPBY, "TOK_GROUPBY");
      for (int i : BitSets.toIter(groupBy.getGroupSet())) {
        RexInputRef iRef = new RexInputRef(i, groupBy.getCluster().getTypeFactory()
            .createSqlType(SqlTypeName.ANY));
        b.add(iRef.accept(new RexVisitor(schema)));
      }

      if (!groupBy.getGroupSet().isEmpty())
        hiveAST.groupBy = b.node();
      schema = new Schema(schema, groupBy);
View Full Code Here

Examples of org.eigenbase.rex.RexLiteral.accept()

      b.add(selectExpr);
    } else {
      int i = 0;

      for (RexNode r : select.getChildExps()) {
        ASTNode selectExpr = ASTBuilder.selectExpr(r.accept(
             new RexVisitor(schema, r instanceof RexLiteral)),
                  select.getRowType().getFieldNames().get(i++));
        b.add(selectExpr);
      }
    }
View Full Code Here

Examples of org.eigenbase.rex.RexNode.accept()

          final RexNode left = call.getOperands().get(0);
          final RexLiteral literal = (RexLiteral) call.getOperands().get(1);
          final String field = (String) literal.getValue2();
//          buf.append('\'');
          final int length = buf.length();
          left.accept(this);
          if (buf.length() > length) {
            // check before generating empty LHS if inputName is null
            buf.append('.');
          }
          buf.append(field);
View Full Code Here

Examples of org.eigenbase.sql.SqlNode.accept()

  }

  @Override
  public SqlNode parseSqlExpressionEof() throws Exception {
    SqlNode originalSqlNode = super.parseSqlExpressionEof();
    return originalSqlNode.accept(new CompoundIdentifierConverter());
  }

  @Override
  public SqlNode parseSqlStmtEof() throws Exception {
    SqlNode originalSqlNode = super.parseSqlStmtEof();
View Full Code Here

Examples of org.elegant.aash.comparator.parsing.expr.DottedExpression.accept()

  @Test
  public void testVisitSimpleDottedExpression() throws IOException {
    String sText = "bytes";
    DottedExpression expr = ExpressionParser.parse(sText);
    PropertyExpressionVisitor visitor = PropertyExpressionVisitor.of("titi", "toto");
    expr.accept(visitor);
    assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(true));
    visitor = PropertyExpressionVisitor.of("titi", "titi");
    expr.accept(visitor);
    assertThat(visitor.getGraph().isChanged(), CoreMatchers.equalTo(false));
  }
View Full Code Here

Examples of org.enclojure.ide.asm.ClassReader.accept()

        {
            cr = new ClassReader(new FileInputStream(args[i]));
        } else {
            cr = new ClassReader(args[i]);
        }
        cr.accept(new TraceClassVisitor(new PrintWriter(System.out)),
                getDefaultAttributes(),
                flags);
    }

    /**
 
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.