Package com.volantis.synergetics.cornerstone.stack

Examples of com.volantis.synergetics.cornerstone.stack.Stack.pop()


        Stack scopeStack = (Stack) type2ScopeStack.get(definitionType);
        if (scopeStack == null || scopeStack.isEmpty()) {
            throw new IllegalArgumentException(
                    "Scope for " + definitionType + " not found");
        }
        scopeStack.pop();
        if (scopeStack.isEmpty()) {
            type2ScopeStack.remove(definitionType);
        }
    }
View Full Code Here


            } while (parent != null);

            // Remove the fake parent node if there is one.
            Node top = (Node) stack.peek();
            if (top instanceof Element && ((Element) top).getName() == null) {
                stack.pop();
            }

            StringBuffer path = new StringBuffer();
            while (!stack.isEmpty()) {
                Node pathNode = (Node) stack.pop();
View Full Code Here

                stack.pop();
            }

            StringBuffer path = new StringBuffer();
            while (!stack.isEmpty()) {
                Node pathNode = (Node) stack.pop();

                if (pathNode instanceof Element) {
                    final String name = ((Element) pathNode).getName();
                    path.append(name);
                } else {
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.