Examples of accept()


Examples of EDU.purdue.jtb.syntaxtree.Node.accept()

         FileGenerator gen = null;

         Errors.resetCounts();

         if ( !Globals.noSemanticCheck ) {
            root.accept(new SemanticChecker());

            if ( Errors.errorCount() > 0 ) {
               Errors.printSummary();
               return;
            }
View Full Code Here

Examples of abstrasy.privates.Private_FilenameFilter.accept()

  public Node external_is_match(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 3);
    File f = new File(startAt.getSubNode(1, Node.TYPE_STRING).getString());
    Private_FilenameFilter filefilter = new Private_FilenameFilter();
    filefilter.setMaskList(startAt.getSubNode(2, Node.TYPE_CLIST));
        return new Node(filefilter.accept(f) ? Node.TRUE: Node.FALSE);
  }

  public Node external_separator(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 1);
    return new Node(File.separator);
View Full Code Here

Examples of aima.core.logic.fol.parsing.ast.Sentence.accept()

  }

  public Object visitNotSentence(NotSentence notSentence, Object arg) {
    Sentence negated = notSentence.getNegated();

    return new NotSentence((Sentence) negated.accept(this, arg));
  }

  public Object visitConnectedSentence(ConnectedSentence sentence, Object arg) {
    Sentence alpha = (Sentence) sentence.getFirst().accept(this, arg);
    Sentence beta = (Sentence) sentence.getSecond().accept(this, arg);
View Full Code Here

Examples of aj.org.objectweb.asm.ClassReader.accept()

  public static byte[] addStackMaps(World world, byte[] data) {
    try {
      ClassReader cr = new ClassReader(data);
      ClassWriter cw = new AspectJConnectClassWriter(world);
      cr.accept(cw, 0);
      return cw.toByteArray();
    } catch (Throwable t) {
      System.err.println("AspectJ Internal Error: unable to add stackmap attributes. " + t.getMessage());
      AsmDetector.isAsmAround = false;
      return data;
View Full Code Here

Examples of avrora.core.Instr.accept()

            state = i.state.dup();
            Instr instr = program.readInstr(i.pc);
            printItem(instr);
            int npc = program.getNextPC(i.pc);
            nextPC = npc;
            instr.accept(this);
            if ( nextPC >= 0 ) {
                String str = npc == nextPC ? "FALLTHROUGH" : "JUMP";
                addToWorkList(str, nextPC, state);

            }
View Full Code Here

Examples of beaver.spec.ast.GrammarTreeRoot.accept()

  {
    GrammarTreeRoot root = (GrammarTreeRoot) new GrammarParser(log).parse(new GrammarScanner(reader));
    if (log.hasErrors())
      throw new Grammar.Exception("cannot parse grammar");
    GrammarBuilder maker = new GrammarBuilder(log);
    root.accept(maker);
    return maker.getGrammar();
  }

  static public ParserGenerator.CompiledParser compile(Grammar grammar, Options opts, Log log) throws Grammar.Exception
  {
View Full Code Here

Examples of bibliothek.gui.DockStation.accept()

      int count = station.getDockableCount();
      if( count == 0 )
        return parent.canDrag( dockable );
      if( count == 1 ){
        return parent.canReplace( dockable, station.getDockable( 0 ) ) &&
              parent.accept( station.getDockable( 0 )) &&
              station.getDockable( 0 ).accept( parent ) &&
              station.canDrag( station.getDockable( 0 ));
      }
      return false;
    }
View Full Code Here

Examples of br.com.caelum.vraptor.asm.ClassReader.accept()

                }
                out.putNextEntry(ze);
                if (ze.getName().endsWith(".class")) {
                    ClassReader cr = new ClassReader(zf.getInputStream(ze));
                    // cr.accept(new ClassDump(), 0);
                    cr.accept(new ClassVerifier(), 0);
                }
                InputStream is = zf.getInputStream(ze);
                int n;
                do {
                    n = is.read(buf, 0, buf.length);
View Full Code Here

Examples of br.com.caelum.vraptor.asm.signature.SignatureReader.accept()

        SignatureWriter w = new SignatureWriter();
        SignatureVisitor a = createRemappingSignatureAdapter(w);
        if (typeSignature) {
            r.acceptType(a);
        } else {
            r.accept(a);
        }
        return w.toString();
    }

    protected SignatureVisitor createRemappingSignatureAdapter(final SignatureVisitor v) {
View Full Code Here

Examples of cleo.search.connection.ConnectionFilter.accept()

    int count = rand.nextInt(10000) + 100;
    Range sourceRange = new Range(start, count);
    ConnectionFilter connFilter = new SourcePartitionConnectionFilter(sourceRange);
   
    Connection conn = new SimpleConnection(0, rand.nextInt(), true);
    assertEquals(false, connFilter.accept(conn));
   
    conn = new SimpleConnection(rand.nextInt(start), rand.nextInt(), true);
    assertEquals(false, connFilter.accept(conn));
   
    conn = new SimpleConnection(start + rand.nextInt(count), rand.nextInt(), true);
View Full Code Here
TOP
Copyright © 2015 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.