You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2003/10/17 20:14:30 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/util IntStack.java

mrglavas    2003/10/17 11:14:30

  Modified:    java/src/org/apache/xerces/util IntStack.java
  Log:
  Add a method which returns the integer value of the element
  at a given depth in the stack. This method is used by the
  XInclude implementation. Submitted by Peter McCracken.
  
  Revision  Changes    Path
  1.4       +6 -1      xml-xerces/java/src/org/apache/xerces/util/IntStack.java
  
  Index: IntStack.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/util/IntStack.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IntStack.java	8 Aug 2002 20:47:13 -0000	1.3
  +++ IntStack.java	17 Oct 2003 18:14:30 -0000	1.4
  @@ -98,6 +98,11 @@
           return fData[fDepth - 1];
       }
   
  +    /** Returns the element at the specified depth in the stack. */
  +    public int elementAt(int depth) {
  +        return fData[depth];
  +    }
  +
       /** Pops a value off of the stack. */
       public int pop() {
           return fData[--fDepth];
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org