Package net.sf.jcontracts.antlr.collections.impl

Examples of net.sf.jcontracts.antlr.collections.impl.Vector


{

    public ExceptionSpec(Token label_)
    {
        label = label_;
        handlers = new Vector();
    }
View Full Code Here


        returnAction = null;
        testLiterals = false;
        defaultErrorHandler = true;
        ignoreRule = null;
        ruleName = r;
        labeledElements = new Vector();
        cache = new Lookahead[g.maxk + 1];
        exceptionSpecs = new Hashtable();
        setAutoGen(g instanceof ParserGrammar);
    }
View Full Code Here

        defaultErrorHandler = true;
        className = className_;
        tool = tool_;
        symbols = new Hashtable();
        options = new Hashtable();
        rules = new Vector(100);
        superClass_ = superClass;
    }
View Full Code Here

    }

    public boolean deterministicImpliedPath(BlockWithImpliedExitPath blk)
    {
        boolean det = true;
        Vector alts = blk.getAlternatives();
        int nalts = alts.size();
        currentBlock.altj = -1;
        if (DEBUG_ANALYZER)
        {
            System.out.println("deterministicImpliedPath");
        }
View Full Code Here

        return getFirstChild() == null || getFirstChild().equalsListPartial(sub.getFirstChild());
    }

    public ASTEnumeration findAll(AST target)
    {
        Vector roots = new Vector(10);
        if (target == null)
        {
            return null;
        }
        doWorkForFindAll(roots, target, false);
View Full Code Here

        return new ASTEnumerator(roots);
    }

    public ASTEnumeration findAllPartial(AST sub)
    {
        Vector roots = new Vector(10);
        if (sub == null)
        {
            return null;
        }
        doWorkForFindAll(roots, sub, true);
View Full Code Here

        println("*** Tokens used by the parser");
        println("This is a list of the token numeric values and the corresponding");
        println("token identifiers.  Some tokens are literals, and because of that");
        println("they have no identifiers.  Literals are double-quoted.");
        tabs++;
        Vector v = tm.getVocabulary();
        for (int i = 4; i < v.size(); i++)
        {
            String s = (String) v.elementAt(i);
            if (s != null)
            {
                println(s + " = " + i);
            }
        }
View Full Code Here

TOP

Related Classes of net.sf.jcontracts.antlr.collections.impl.Vector

Copyright © 2018 www.massapicom. 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.