Package java.util

Examples of java.util.Stack.elementAt()


        m_formatSpecification = new PatternRun[ elementCount ];

        for( int i = 0; i < elementCount; i++ )
        {
            m_formatSpecification[ i ] = (PatternRun) stack.elementAt( i );
        }
    }

    /**
     * Set the string description that the format is extracted from.
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

            }

            StringBuilder flatPathBuffer = new StringBuilder();

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

            returnValue = flatPathBuffer.toString();
        }
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

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

      }
      else {
    _nextSibling2[attr-1] = attr;
      }
      _nextSibling2[attr] = DOM.NULL;
      _prefix2[attr] = ((Integer) stack.elementAt(0)).shortValue();
  }

  private Stack definePrefixAndUri(String prefix, String uri)
      throws SAXException
  {
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

     * @param i
     * @return
     */
    public static CallFrame frameAt(int i) {
        final Stack stack = (Stack) callStack.get();
        return (CallFrame) (stack != null ? stack.elementAt(i) : null);
    }
}
View Full Code Here

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

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.