public void addElement(Node value){
  if (!m_mutable)   throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_NOT_MUTABLE,null));
  if ((m_firstFree + 1) >= m_mapSize) {
    if (null == m_map) {
      m_map=new Node[m_blocksize];
      m_mapSize=m_blocksize;
    }
 else {
      m_mapSize+=m_blocksize;
      Node newMap[]=new Node[m_mapSize];
      System.arraycopy(m_map,0,newMap,0,m_firstFree + 1);
      m_map=newMap;
    }
  }
  m_map[m_firstFree]=value;
  m_firstFree++;
}

public void addElement ( Node value ) { if ( ! m_mutable ) throw new RuntimeException ( XSLMessages . createXPATHMessage ( XPATHErrorResources . ER_NODESET_NOT_MUTABLE , null ) ) ; if ( ( m_firstFree + 1 ) >= m_mapSize ) { if ( null == m_map ) { m_map = new Node [ m_blocksize ] ; m_mapSize = m_blocksize ; } else { m_mapSize += m_blocksize ; Node newMap [ ] = new Node [ m_mapSize ] ; System . arraycopy ( m_map , 0 , newMap , 0 , m_firstFree + 1 ) ; m_map = newMap ; } } m_map [ m_firstFree ] = value ; m_firstFree ++ ; }
append a node onto the vector .
