Examples of visit()


Examples of Galaxy.Visitor.Local.GalaxyToLoniWorkflowConverter.visit()

    System.out.println("==="+path+"===");
    Workflow G;
    try {
      G = GalaxySpecification.getJSONParser().parse(new File(path));
      GalaxyToLoniWorkflowConverter glc = new GalaxyToLoniWorkflowConverter();
      Pipeline pipeline = (Pipeline) glc.visit(G);
     
      try {
        LoniSpecification.getXMLGenerator().generate(pipeline, output);
      } catch (IOException e) {
        // TODO Auto-generated catch block
View Full Code Here

Examples of LONI.visitor.LoniToGalaxyConverter.visit()

    System.out.println("==="+path+"===");
    Pipeline p;
    try {
      p = LoniSpecification.getXMLParser().parse(new File(path));
      LoniToGalaxyConverter lgc = new LoniToGalaxyConverter();
      Workflow workflow = (Workflow) lgc.visit(p);
     
      try {
        GalaxySpecification.getJSONGenerator().generate(workflow, output);
        GalaxySpecification.getDatabase().dumpDatabase();
        GalaxySpecification.getDatabase().clear();
View Full Code Here

Examples of LONI.visitor.LoniToTavernaConverter.visit()

    System.out.println("==="+path + ">" + output+"===");
    Pipeline p;
    try {
      p = LoniSpecification.getXMLParser().parse(new File(path));
      LoniToTavernaConverter l2t = new LoniToTavernaConverter();
      Workflow workflow= (Workflow) l2t.visit(p);
      try {
        TavernaSpecification.getXMLGenerator().generate(workflow, output);
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

Examples of Taverna.Visitor.TavernaToLoniConverter.visit()

        outputString = TavernaSpecification.getXMLGenerator().generate(
            t);
        break;
      case LONI:
        TavernaToLoniConverter foo = new TavernaToLoniConverter();
        Pipeline p = (Pipeline) foo.visit(t);
        outputString = LoniSpecification.getXMLGenerator().generate(p);
        break;
      default:
        cantConvert();
      }
View Full Code Here

Examples of br.com.caelum.vraptor.asm.AnnotationVisitor.visit()

        if (c.isArray()) {
            AnnotationVisitor av = visitArray(name);
            if (value instanceof byte[]) {
                byte[] b = (byte[]) value;
                for (int i = 0; i < b.length; i++) {
                    av.visit(null, new Byte(b[i]));
                }

            } else if (value instanceof char[]) {
                char[] b = (char[]) value;
                for (int i = 0; i < b.length; i++) {
View Full Code Here

Examples of br.com.caelum.vraptor.asm.ClassWriter.visit()

        + method.getName() + "$" + Math.abs(method.hashCode()) + "$" + (++classLoadCounter);
    logger.debug("Trying to make class for " + newTypeName);

    ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);

    cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, newTypeName, null, "java/lang/Object", new String[] {"java/io/Serializable"});

    {
      MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
View Full Code Here

Examples of ch.epfl.labos.iu.orm.queryll2.symbolic.TypedValue.visit()

{
   public static TypedValue simplify(TypedValue value, Map<MethodSignature, TypedValue.ComparisonValue.ComparisonOp> comparisonMethods)
   {
      TypedValue simplifiedBooleanReturnValue = value
            .visit(new TypedValueRewriterWalker<Object, RuntimeException>(new SymbExSimplifier<Object>(comparisonMethods)), null);
      simplifiedBooleanReturnValue = simplifiedBooleanReturnValue.visit(new SymbExBooleanRewriter(), false);
      return simplifiedBooleanReturnValue;
//      return value.visit(new TypedValueRewriterWalker<Object, RuntimeException>(new SymbExSimplifier<Object>(comparisonMethods)), null);
   }
//   public TypedValue getIsTrueReturnValue()
//   {
View Full Code Here

Examples of ch.ethz.iks.slp.impl.attr.gen.Rule.visit()

    }
    Parser parser = new Parser();
    try {
      Rule parse = parser.parse("attr-list", input);
      AttributeListVisitor visitor = new AttributeListVisitor();
      parse.visit(visitor);
      return visitor.getAttributes();
    } catch (IllegalArgumentException e) {
      throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR, e.getMessage());
    } catch (ParserException e) {
      throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR, e.getMessage());
View Full Code Here

Examples of com.alibaba.citrus.asm.AnnotationVisitor.visit()

    private final class AnnotationValueRule extends Rule {

        public void begin(final String nm, final Attributes attrs) throws SAXException {
            AnnotationVisitor av = (AnnotationVisitor) peek();
            if (av != null) {
                av.visit(attrs.getValue("name"), getValue(attrs.getValue("desc"), attrs.getValue("value")));
            }
        }
    }

    private final class AnnotationValueEnumRule extends Rule {
View Full Code Here

Examples of com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor.visit()

        @Override
        protected void accept0(SQLASTVisitor visitor) {
            if (visitor instanceof MySqlASTVisitor) {
                MySqlASTVisitor mysqlVisitor = (MySqlASTVisitor) visitor;

                if (mysqlVisitor.visit(this)) {
                    acceptChild(visitor, offset);
                    acceptChild(visitor, rowCount);
                }
            }
        }
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.