Examples of visit()


Examples of com.alibaba.druid.sql.dialect.postgresql.visitor.PGASTVisitor.visit()

        @Override
        protected void accept0(SQLASTVisitor visitor) {
            if (visitor instanceof PGASTVisitor) {
              PGASTVisitor pgVisitor = (PGASTVisitor) visitor;

                if (pgVisitor.visit(this)) {
                    if (pgVisitor instanceof PGOutputVisitor)
                    {
                        PGOutputVisitor pgv = (PGOutputVisitor) pgVisitor;
                        pgv.print(this.rowCount.toString());
                        if (this.offset != null)
View Full Code Here

Examples of com.alibaba.fastjson.asm.ClassWriter.visit()

        }

        String className = getGenClassName(clazz);

        ClassWriter cw = new ClassWriter();
        cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, className, getType(ASMJavaBeanDeserializer.class), null);

        DeserializeBeanInfo beanInfo = DeserializeBeanInfo.computeSetters(clazz);

        _init(cw, new Context(className, config, beanInfo, 3));
        _createInstance(cw, new Context(className, config, beanInfo, 3));
View Full Code Here

Examples of com.dragome.compiler.ast.ASTNode.visit()

      if (node instanceof Block && ((Block) node).isLabeled())
      {
        print(((Block) node).getLabel() + ": ");
      }

      node.visit(this);

      if (lastChar == '}')
      {
        println("");
      }
View Full Code Here

Examples of com.dragome.compiler.ast.CatchClause.visit()

        if (clause.getException().getType() != null)
          print("if (dragomeJs.isInstanceof(" + ex + ", " + normalizeExpression(Utils.getSignature(clause.getException().getType())) + ")) ");
        else
          print("if (true)");

        clause.visit(this);
        clause= (CatchClause) clause.getNextSibling();
        if (clause == null)
          break;
        print(" else ");
      }
View Full Code Here

Examples of com.dragome.compiler.ast.Expression.visit()

      {
        print("true");
      }
      else
      {
        rhs.visit(this);
      }
    }
    else
    {
      rhs.visit(this);
View Full Code Here

Examples of com.dragome.compiler.ast.MethodDeclaration.visit()

        String normalizeExpression= normalizeExpression(Project.getSingleton().getSignature(method.getMethodBinding().toString()).relative());

        if (!processedMethods.contains(normalizeExpression))
        {
          processedMethods.add(normalizeExpression);
          method.visit(this);
        }
        else
          System.out.println("duplicado!");
        //    System.out.println("llego!");
      }
View Full Code Here

Examples of com.dragome.compiler.ast.NumberLiteral.visit()

    {
      while (iter.hasNext())
      {
        NumberLiteral expression= iter.next();
        indent("case ");
        expression.visit(this);
        println(":");
      }
    }
    else
    {
View Full Code Here

Examples of com.dragome.compiler.ast.SwitchCase.visit()

    println(") {");
    ASTNode node= switchStmt.getFirstChild();
    while (node != null)
    {
      SwitchCase sc= (SwitchCase) node;
      sc.visit(this);
      node= node.getNextSibling();
    }
    indentln("}");
  }
View Full Code Here

Examples of com.dragome.compiler.ast.TypeDeclaration.visit()

      new FieldUnit(getSignature("length"), clazz);

      TypeDeclaration typeDecl= new TypeDeclaration(new ObjectType(clazz.getName()), 0, new HashMap<String, String>());//revisar annotations
      typeDecl.setSuperType(Type.OBJECT);
      typeDecl.visit(DragomeJsCompiler.compiler.generator);
    }
    else
    {
      TypeResolver resolver= new TypeResolver(this, DragomeJsCompiler.compiler.generator);
      visitSuperTypes(clazz, resolver);
View Full Code Here

Examples of com.dragome.compiler.ast.VariableDeclaration.visit()

      if (decl.getLocation() == VariableDeclaration.NON_LOCAL)
      {
        //      if (Modifier.isStatic(decl.getModifiers()))
        //    continue;
        //    indent();
        decl.visit(this);
        //println(",");
      }
    }
    depth--;
    //  String superType= null;
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.