Package org.jibx.util

Examples of org.jibx.util.StringStack


        }
       
        // create the method generator with empty instruction list
        String[] names = (String[])s_argNameLists.get(args.length);
        m_instructionList = new InstructionList();
        m_stackState = new StringStack();
        m_instructionBuilder = cf.getInstructionBuilder();
        m_generator = new MethodGen(access | SYNTHETIC_ACCESS_FLAG, ret, args,
            names, name, cf.getName(), m_instructionList, cf.getConstPoolGen());
       
        // initialize local variables for method parameters
View Full Code Here


                    if (depth > types.length) {
                        BranchWrapper merge = new BranchWrapper
                            (m_instructionList.insert(inst, new GOTO(null)),
                            types, this);
                        String[] stack = m_targetBranches[0].getStackState();
                        m_stackState = new StringStack(stack);
                        InstructionHandle poph = m_instructionList.
                            insert(inst, InstructionConstants.POP);
                        for (int i = 0; i < m_targetBranches.length; i++) {
                            m_targetBranches[i].setTarget(poph, stack, this);
                        }
View Full Code Here

     * source.
     *
     * @param branch wrapper for branch to be for stack initialization
     */
    public void initStackState(BranchWrapper branch) {
        m_stackState = new StringStack(branch.getStackState());
    }
View Full Code Here

     *
     * @param branch wrapper for branch to be for stack initialization
     * @param pop number of items to be removed from branch source stack state
     */
    public void initStackState(BranchWrapper branch, int pop) {
        m_stackState = new StringStack(branch.getStackState());
        if (pop > 0) {
            m_stackState.pop(pop);
        }
    }
View Full Code Here

     * instruction.
     *
     * @param types array of type names on stack
     */
    protected void initStackState(String[] types) {
        m_stackState = new StringStack(types);
    }
View Full Code Here

    public void targetNext(BranchWrapper branch) {
        if (branch != null) {
            if (m_targetBranches == null) {
                m_targetBranches = new BranchWrapper[] { branch };
                if (m_stackState == null) {
                    m_stackState = new StringStack(branch.getStackState());
                }
            } else {
                int length = m_targetBranches.length;
                BranchWrapper[] wrappers = new BranchWrapper[length+1];
                System.arraycopy(m_targetBranches, 0, wrappers, 0, length);
View Full Code Here

    public void targetNext(BranchWrapper[] branches) {
        if (branches != null && branches.length > 0) {
            if (m_targetBranches == null) {
                m_targetBranches = branches;
                if (m_stackState == null) {
                    m_stackState = new StringStack(branches[0].getStackState());
                }
            } else {
                int offset = m_targetBranches.length;
                int length = offset + branches.length;
                BranchWrapper[] wrappers = new BranchWrapper[length];
View Full Code Here

TOP

Related Classes of org.jibx.util.StringStack

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.