Package org.eclipse.php.internal.core.documentModel.parser

Examples of org.eclipse.php.internal.core.documentModel.parser.StateStack


        reset(s.array, s.offset, s.count);
    }

    public void initialize(final int state)
    {
        twigStack = new StateStack();
        yybegin(state);
    }
View Full Code Here


            if (!(obj instanceof BasicLexerState))
                return false;
            final BasicLexerState tmp = (BasicLexerState) obj;
            if (tmp.lexicalState != lexicalState)
                return false;
            final StateStack activeStack = getActiveStack();
            final StateStack otherActiveStack = tmp.getActiveStack();
            if (!(activeStack == otherActiveStack || activeStack != null
                    && activeStack.equals(otherActiveStack)))
                return false;
            return true;
        }
View Full Code Here

        public boolean isSubstateOf(final int state)
        {
            if (lexicalState == state)
                return true;
            final StateStack activeStack = getActiveStack();
            if (activeStack == null)
                return false;
            return activeStack.contains(state);
        }
View Full Code Here

        }

        @Override
        public String toString()
        {
            final StateStack stack = getActiveStack();
            final String stackStr = stack == null ? "null" : stack.toString(); //$NON-NLS-1$
            return "Stack: " + stackStr + ", currState: " + lexicalState; //$NON-NLS-1$ //$NON-NLS-2$
        }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.documentModel.parser.StateStack

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.