Package java.util

Examples of java.util.Stack.elementAt()


            }

            StringBuffer flatPathBuffer = new StringBuffer();

            for (int i = 0; i < stack.size(); i++) {
                flatPathBuffer.append("/").append(stack.elementAt(i));
            }

            returnValue = flatPathBuffer.toString();
        }
View Full Code Here


    }

    public CFlow peekTopCFlow() {
        Stack stack = getThreadStack();
        if (stack.isEmpty()) return null;
        return (CFlow)stack.elementAt(0);
    }

    public boolean isValid() {
        return !getThreadStack().isEmpty();
    }
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
       

        path = sb.toString();
        if (dosWithDrive) {
View Full Code Here

        // Transform presentation stack to SVG
        //
        int nPresentations = presentation.size();
       
        for(i = 0; i < nPresentations; i++) {
            transformStackBuffer.append(convertTransform((TransformStackElement) presentation.elementAt(i)));
            transformStackBuffer.append(SPACE);
        }

        String transformValue = transformStackBuffer.toString().trim();
        return transformValue;
View Full Code Here

            }

            StringBuffer flatPathBuffer = new StringBuffer();

            for (int i = 0; i < stack.size(); i++) {
                flatPathBuffer.append("/").append(stack.elementAt(i));
            }

            returnValue = flatPathBuffer.toString();
        }
View Full Code Here

                int regtotal = 0;

                // Now, move values into temp registers
                while (depth > 0) {
                    int elemType =
                        ((Integer)stackTypes.elementAt(elem--)).intValue();
                    int elemSize = Descriptor.elementSize(elemType);
                    depth -= elemSize;
                    int reg = ((elemSize == 1)
                               ? tmpReg(singleRegs++)
                               : tmpReg2(doubleRegs++));
View Full Code Here

                annotation.append(frag0.annotation);

                while (regtotal > 0)
                    annotation.append(InsnUtils.load(
                        ((Integer)stackTypes.elementAt(++elem)).intValue(),
                        regnums[--regtotal], pool));

                noteStack(frag0.stackRequired - note.arg());
            }
View Full Code Here

    Hashtable<String,Object> attributes = new Hashtable<String,Object>(17);

    String victimXID = null;

    for (int i = 0; i < chain.size(); i++) {
      Object space = chain.elementAt(i);
      if (space instanceof List) {
        List grants = (List) space;

        if (grants.size() != 0) {
View Full Code Here

    {
      frame = allocateCurrentFrame();
    }
    for (int i = (frame.size() - 1); i >= 0; i--)
    {
      Arg arg = (Arg)frame.elementAt(i);
      if(arg.getQName().equals(qname) && arg.isFromWithParam())
      {
        frame.setElementAt(new Arg(qname, xval, true), i);
        return;
      }
View Full Code Here

  {
    Stack frame = getCurrentFrame();
   
    for (int i = (frame.size() - 1); i >= 0; i--)
    {
      Arg arg = (Arg)frame.elementAt(i);
      if(null != arg)
        arg.setIsVisible(false);
    }
  }
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.