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

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


    public void addOption(Option o)
    {
        if (options_ == null)
        {
            options_ = new IndexedVector();
        }
        options_.appendElement(o.getName(), o);
    }
View Full Code Here


        }
        superG.expandInPlace();
        alreadyExpanded = true;
        GrammarFile gf = hier_.getFile(getFileName());
        gf.setExpanded(true);
        IndexedVector inhRules = superG.getRules();
        Rule r;
        for (Enumeration e = inhRules.elements(); e.hasMoreElements(); inherit(r, superG))
        {
            r = (Rule) e.nextElement();
        }

        IndexedVector inhOptions = superG.getOptions();
        if (inhOptions == null)
        {
            return;
        }
        Option o;
        for (Enumeration e = inhOptions.elements(); e.hasMoreElements(); inherit(o, superG))
        {
            o = (Option) e.nextElement();
        }

        inherit(superG.memberAction_, superG);
View Full Code Here

        Token preamble = null;
        Token sub = null;
        Token sup = null;
        Token memberA = null;
        Grammar gr = null;
        IndexedVector rules = new IndexedVector(100);
        IndexedVector classOptions = null;
        try
        {
            if (la_1 == 5)
            {
                preamble = LT(1);
View Full Code Here

    }

    public final void grammarFile(Hierarchy hier, String file) throws ParserException
    {
        Token hdr = null;
        IndexedVector opt = null;
        try
        {
            if (la_1 == 4)
            {
                hdr = LT(1);
View Full Code Here

    public final IndexedVector optionSpec(Grammar gr) throws ParserException
    {
        Token op = null;
        Token rhs = null;
        IndexedVector options = new IndexedVector();
        try
        {
            match(17);
            int _cnt = 0;
            do
            {
                if (la_1 == 7)
                {
                    op = LT(1);
                    match(7);
                    rhs = LT(1);
                    match(18);
                    Option newOp = new Option(op.getText(), rhs.getText(), gr);
                    options.appendElement(newOp.getName(), newOp);
                    if (rhs.getText().equals("tokdef"))
                    {
                        gr.specifiedVocabulary = true;
                    }
                }
View Full Code Here

        Token r = null;
        Token arg = null;
        Token ret = null;
        Token init = null;
        Token blk = null;
        IndexedVector o = null;
        String vis = null;
        boolean bang = false;
        try
        {
            switch (la_1)
View Full Code Here

    public GrammarFile(String f)
    {
        expanded = false;
        fileName = f;
        grammars = new IndexedVector();
    }
View Full Code Here

TOP

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

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.