code: public ArrayList getChunks() {
          ArrayList tmp = new ArrayList();
          Chunk chunk;
          Iterator i = iterator();
          boolean localDestination = (reference != null && reference.startsWith("#"));
          boolean notGotoOK = true;
          while (i.hasNext()) {
              chunk = (Chunk) i.next();
              if (name != null && notGotoOK && !chunk.isEmpty()) {
                  chunk.setLocalDestination(name);
                  notGotoOK = false;
              }
              if (localDestination) {
                  chunk.setLocalGoto(reference.substring(1));
              }
              else if (reference != null)
                  chunk.setAnchor(reference);
              tmp.add(chunk);
          }
          return tmp;
      }
docs: Gets all the chunks in this element.
  
  @return	an <CODE>ArrayList</CODE>