home *** CD-ROM | disk | FTP | other *** search
- package com.ms.xml.parser;
-
- import com.ms.xml.om.Element;
- import com.ms.xml.util.Atom;
- import com.ms.xml.util.XMLOutputStream;
- import java.io.IOException;
- import java.util.BitSet;
-
- class Qmark extends Node {
- Node node;
-
- Qmark(Node var1) {
- this.node = var1;
- }
-
- BitSet firstpos(int var1) {
- if (super.first == null) {
- super.first = this.node.firstpos(var1);
- }
-
- return super.first;
- }
-
- BitSet lastpos(int var1) {
- if (super.last == null) {
- super.last = this.node.lastpos(var1);
- }
-
- return super.last;
- }
-
- Element toSchema(int var1, int var2, Element var3) {
- ++var2;
- this.node.toSchema(63, var2, var3);
- --var2;
- return var3;
- }
-
- void save(XMLOutputStream var1, int var2, int var3, Atom var4) throws IOException {
- ++var3;
- if (var2 == 63 || var2 == 42) {
- var1.writeChars("(");
- }
-
- this.node.save(var1, 63, var3, var4);
- var1.write(63);
- if (var2 == 63 || var2 == 42) {
- var1.writeChars(")");
- }
-
- --var3;
- }
-
- Node clone(ContentModel var1) {
- return new Qmark(this.node.clone(var1));
- }
-
- void calcfollowpos(BitSet[] var1) {
- this.node.calcfollowpos(var1);
- }
-
- boolean nullable() {
- return true;
- }
- }
-