home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2000 January / Onto0100.iso / pc / JAVA / MSJAVX86.EXE / xmldso.cab / XML4IE3.cab / com / ms / xml / parser / Qmark.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-10  |  1.1 KB  |  58 lines

  1. package com.ms.xml.parser;
  2.  
  3. import com.ms.xml.util.Name;
  4. import com.ms.xml.util.XMLOutputStream;
  5. import java.io.IOException;
  6. import java.util.BitSet;
  7.  
  8. class Qmark extends Node {
  9.    Node node;
  10.  
  11.    BitSet firstpos(int var1) {
  12.       if (super.first == null) {
  13.          super.first = this.node.firstpos(var1);
  14.       }
  15.  
  16.       return super.first;
  17.    }
  18.  
  19.    BitSet lastpos(int var1) {
  20.       if (super.last == null) {
  21.          super.last = this.node.lastpos(var1);
  22.       }
  23.  
  24.       return super.last;
  25.    }
  26.  
  27.    void save(XMLOutputStream var1, int var2, int var3, Name var4) throws IOException {
  28.       ++var3;
  29.       if (var2 == 63 || var2 == 42) {
  30.          var1.writeChars("(");
  31.       }
  32.  
  33.       this.node.save(var1, 63, var3, var4);
  34.       var1.write(63);
  35.       if (var2 == 63 || var2 == 42) {
  36.          var1.writeChars(")");
  37.       }
  38.  
  39.       --var3;
  40.    }
  41.  
  42.    Qmark(Node var1) {
  43.       this.node = var1;
  44.    }
  45.  
  46.    Node clone(ContentModel var1) {
  47.       return new Qmark(this.node.clone(var1));
  48.    }
  49.  
  50.    void calcfollowpos(BitSet[] var1) {
  51.       this.node.calcfollowpos(var1);
  52.    }
  53.  
  54.    boolean nullable() {
  55.       return true;
  56.    }
  57. }
  58.