Package java.util

Examples of java.util.Stack.elementAt()


    Stack frame = getCurrentFrame();
   
    for (int i = (frame.size() - 1); i >= 0; i--)
    {
      Object obj = frame.elementAt(i);

      if (((Arg) obj).getQName().equals(qname))
      {
        return (Arg) obj;
      }
View Full Code Here


    if(gframe == frame)
      return null;
   
    for (int i = (gframe.size() - 1); i >= 0; i--)
    {
      Object obj = gframe.elementAt(i);

      if (((Arg) obj).getQName().equals(qname))
      {
        return (Arg) obj;
      }
View Full Code Here

    XObject val = null;
    Stack frame = getCurrentFrame();
   
    for (int i = (frame.size() - 1); i >= 0; i--)
    {
      Arg arg = (Arg)frame.elementAt(i);

      if (arg.getQName().equals(qname) && arg.isFromWithParam())
      {
        return arg;
      }
View Full Code Here

      }
    }
    
    for (int i = (gframe.size() - 1); i >= 0; i--)
    {
      Arg arg = (Arg)gframe.elementAt(i);

      if (arg.getQName().equals(name) && arg.isVisible())
      {
        XObject val = arg.getVal();
        if(val.getType() == XObject.CLASS_UNRESOLVEDVARIABLE)
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));
        }
        return new File(sb.toString());
    }

    /**
 
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

   *
   */
  private short registerPrefix(String prefix) {
      Stack stack = (Stack)_nsPrefixes.get(prefix);
      if (stack != null) {
    Integer obj = (Integer)stack.elementAt(0);
    return (short)obj.intValue();
      }
      return 0;
  }

View Full Code Here

      _prefixArray = new String[_prefixCount];
      Enumeration p = _nsPrefixes.keys();
      while (p.hasMoreElements()) {
    final String prefix = (String)p.nextElement();
    final Stack stack = (Stack)_nsPrefixes.get(prefix);
    final Integer I = (Integer)stack.elementAt(0);
    _prefixArray[I.shortValue()] = prefix;
      }
  }
 
  /**
 
View Full Code Here

    Hashtable attributes = new Hashtable(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

   *
   */
  private short registerPrefix(String prefix) {
      Stack stack = (Stack)_nsPrefixes.get(prefix);
      if (stack != null) {
    Integer obj = (Integer)stack.elementAt(0);
    return (short)obj.intValue();
      }
      return 0;
  }

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.