public class com.sun.xml.internal.rngom.digested.DXMLPrinter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.xml.internal.rngom.digested.DXMLPrinter
super_class: java.lang.Object
{
protected javax.xml.stream.XMLStreamWriter out;
descriptor: Ljavax/xml/stream/XMLStreamWriter;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String indentStep;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String newLine;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected int indent;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected boolean afterEnd;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor visitor;
descriptor: Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
flags: (0x0004) ACC_PROTECTED
protected com.sun.xml.internal.rngom.digested.DXMLPrinter$NameClassXMLPrinterVisitor ncVisitor;
descriptor: Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$NameClassXMLPrinterVisitor;
flags: (0x0004) ACC_PROTECTED
protected com.sun.xml.internal.rngom.digested.DOMPrinter domPrinter;
descriptor: Lcom/sun/xml/internal/rngom/digested/DOMPrinter;
flags: (0x0004) ACC_PROTECTED
public void <init>(javax.xml.stream.XMLStreamWriter);
descriptor: (Ljavax/xml/stream/XMLStreamWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "\t"
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.indentStep:Ljava/lang/String;
2: aload 0
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.newLine:Ljava/lang/String;
3: aload 0
iconst_0
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.afterEnd:Z
4: aload 0
aload 1
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.out:Ljavax/xml/stream/XMLStreamWriter;
5: aload 0
new com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor
dup
aload 0
invokespecial com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor.<init>:(Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;)V
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.visitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
6: aload 0
new com.sun.xml.internal.rngom.digested.DXMLPrinter$NameClassXMLPrinterVisitor
dup
aload 0
invokespecial com.sun.xml.internal.rngom.digested.DXMLPrinter$NameClassXMLPrinterVisitor.<init>:(Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;)V
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.ncVisitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$NameClassXMLPrinterVisitor;
7: aload 0
new com.sun.xml.internal.rngom.digested.DOMPrinter
dup
aload 1
invokespecial com.sun.xml.internal.rngom.digested.DOMPrinter.<init>:(Ljavax/xml/stream/XMLStreamWriter;)V
putfield com.sun.xml.internal.rngom.digested.DXMLPrinter.domPrinter:Lcom/sun/xml/internal/rngom/digested/DOMPrinter;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
0 9 1 out Ljavax/xml/stream/XMLStreamWriter;
MethodParameters:
Name Flags
out
public void printDocument(com.sun.xml.internal.rngom.digested.DGrammarPattern);
descriptor: (Lcom/sun/xml/internal/rngom/digested/DGrammarPattern;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.visitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor.startDocument:()V
1: aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.visitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
aload 1
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor.on:(Lcom/sun/xml/internal/rngom/digested/DPattern;)V
2: aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.visitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor.endDocument:()V
3: goto 8
StackMap locals:
StackMap stack: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
4: astore 2
start local 2 5: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
instanceof javax.xml.stream.XMLStreamException
ifeq 7
6: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
checkcast javax.xml.stream.XMLStreamException
athrow
7: StackMap locals: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
StackMap stack:
new javax.xml.stream.XMLStreamException
dup
aload 2
invokespecial javax.xml.stream.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
0 9 1 grammar Lcom/sun/xml/internal/rngom/digested/DGrammarPattern;
5 8 2 e Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$XMLWriterException;
Exception table:
from to target type
0 3 4 Class com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
grammar
public void print(com.sun.xml.internal.rngom.digested.DPattern);
descriptor: (Lcom/sun/xml/internal/rngom/digested/DPattern;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.visitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$DXMLPrinterVisitor;
invokevirtual com.sun.xml.internal.rngom.digested.DPattern.accept:(Lcom/sun/xml/internal/rngom/digested/DPatternVisitor;)Ljava/lang/Object;
pop
1: goto 6
StackMap locals:
StackMap stack: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
2: astore 2
start local 2 3: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
instanceof javax.xml.stream.XMLStreamException
ifeq 5
4: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
checkcast javax.xml.stream.XMLStreamException
athrow
5: StackMap locals: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
StackMap stack:
new javax.xml.stream.XMLStreamException
dup
aload 2
invokespecial javax.xml.stream.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
0 7 1 pattern Lcom/sun/xml/internal/rngom/digested/DPattern;
3 6 2 e Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$XMLWriterException;
Exception table:
from to target type
0 1 2 Class com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
pattern
public void print(com.sun.xml.internal.rngom.nc.NameClass);
descriptor: (Lcom/sun/xml/internal/rngom/nc/NameClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.ncVisitor:Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$NameClassXMLPrinterVisitor;
invokevirtual com.sun.xml.internal.rngom.nc.NameClass.accept:(Lcom/sun/xml/internal/rngom/nc/NameClassVisitor;)Ljava/lang/Object;
pop
1: goto 6
StackMap locals:
StackMap stack: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
2: astore 2
start local 2 3: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
instanceof javax.xml.stream.XMLStreamException
ifeq 5
4: aload 2
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException.getCause:()Ljava/lang/Throwable;
checkcast javax.xml.stream.XMLStreamException
athrow
5: StackMap locals: com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
StackMap stack:
new javax.xml.stream.XMLStreamException
dup
aload 2
invokespecial javax.xml.stream.XMLStreamException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
0 7 1 nc Lcom/sun/xml/internal/rngom/nc/NameClass;
3 6 2 e Lcom/sun/xml/internal/rngom/digested/DXMLPrinter$XMLWriterException;
Exception table:
from to target type
0 1 2 Class com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
nc
public void print(org.w3c.dom.Node);
descriptor: (Lorg/w3c/dom/Node;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.rngom.digested.DXMLPrinter.domPrinter:Lcom/sun/xml/internal/rngom/digested/DOMPrinter;
aload 1
invokevirtual com.sun.xml.internal.rngom.digested.DOMPrinter.print:(Lorg/w3c/dom/Node;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
0 2 1 node Lorg/w3c/dom/Node;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
node
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=10, args_size=1
start local 0 0: new com.sun.xml.internal.rngom.digested.DXMLPrinter$1
dup
invokespecial com.sun.xml.internal.rngom.digested.DXMLPrinter$1.<init>:()V
astore 2
start local 2 1: new java.io.File
dup
aload 0
iconst_0
aaload
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 0
iconst_0
aaload
ldc ".rng"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
3: new com.sun.xml.internal.rngom.parse.xml.SAXParseable
dup
new org.xml.sax.InputSource
dup
aload 3
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
aload 2
invokespecial com.sun.xml.internal.rngom.parse.xml.SAXParseable.<init>:(Lorg/xml/sax/InputSource;Lorg/xml/sax/ErrorHandler;)V
astore 1
start local 1 4: goto 6
end local 1 5: StackMap locals: java.lang.String[] top org.xml.sax.ErrorHandler java.lang.String
StackMap stack:
new com.sun.xml.internal.rngom.parse.compact.CompactParseable
dup
new org.xml.sax.InputSource
dup
aload 3
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
aload 2
invokespecial com.sun.xml.internal.rngom.parse.compact.CompactParseable.<init>:(Lorg/xml/sax/InputSource;Lorg/xml/sax/ErrorHandler;)V
astore 1
start local 1 6: StackMap locals: java.lang.String[] com.sun.xml.internal.rngom.parse.Parseable org.xml.sax.ErrorHandler java.lang.String
StackMap stack:
new com.sun.xml.internal.rngom.ast.util.CheckingSchemaBuilder
dup
new com.sun.xml.internal.rngom.digested.DSchemaBuilderImpl
dup
invokespecial com.sun.xml.internal.rngom.digested.DSchemaBuilderImpl.<init>:()V
aload 2
invokespecial com.sun.xml.internal.rngom.ast.util.CheckingSchemaBuilder.<init>:(Lcom/sun/xml/internal/rngom/ast/builder/SchemaBuilder;Lorg/xml/sax/ErrorHandler;)V
astore 4
start local 4 7: aload 1
aload 4
invokeinterface com.sun.xml.internal.rngom.parse.Parseable.parse:(Lcom/sun/xml/internal/rngom/ast/builder/SchemaBuilder;)Lcom/sun/xml/internal/rngom/ast/om/ParsedPattern;
checkcast com.sun.xml.internal.rngom.digested.DGrammarPattern
astore 5
start local 5 8: new java.io.FileOutputStream
dup
aload 0
iconst_1
aaload
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 6
start local 6 9: invokestatic javax.xml.stream.XMLOutputFactory.newInstance:()Ljavax/xml/stream/XMLOutputFactory;
astore 7
start local 7 10: aload 7
ldc "javax.xml.stream.isRepairingNamespaces"
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual javax.xml.stream.XMLOutputFactory.setProperty:(Ljava/lang/String;Ljava/lang/Object;)V
11: aload 7
aload 6
invokevirtual javax.xml.stream.XMLOutputFactory.createXMLStreamWriter:(Ljava/io/OutputStream;)Ljavax/xml/stream/XMLStreamWriter;
astore 8
start local 8 12: new com.sun.xml.internal.rngom.digested.DXMLPrinter
dup
aload 8
invokespecial com.sun.xml.internal.rngom.digested.DXMLPrinter.<init>:(Ljavax/xml/stream/XMLStreamWriter;)V
astore 9
start local 9 13: aload 9
aload 5
invokevirtual com.sun.xml.internal.rngom.digested.DXMLPrinter.printDocument:(Lcom/sun/xml/internal/rngom/digested/DGrammarPattern;)V
14: aload 8
invokeinterface javax.xml.stream.XMLStreamWriter.close:()V
15: aload 6
invokevirtual java.io.OutputStream.close:()V
end local 9 end local 8 end local 7 end local 6 end local 5 16: goto 33
StackMap locals: java.lang.String[] com.sun.xml.internal.rngom.parse.Parseable org.xml.sax.ErrorHandler java.lang.String com.sun.xml.internal.rngom.ast.builder.SchemaBuilder
StackMap stack: com.sun.xml.internal.rngom.ast.builder.BuildException
17: astore 5
start local 5 18: aload 5
invokevirtual com.sun.xml.internal.rngom.ast.builder.BuildException.getCause:()Ljava/lang/Throwable;
instanceof org.xml.sax.SAXParseException
ifeq 28
19: aload 5
invokevirtual com.sun.xml.internal.rngom.ast.builder.BuildException.getCause:()Ljava/lang/Throwable;
checkcast org.xml.sax.SAXParseException
astore 6
start local 6 20: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
21: aload 6
invokevirtual org.xml.sax.SAXParseException.getLineNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
22: ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: aload 6
invokevirtual org.xml.sax.SAXParseException.getColumnNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
24: ldc "): "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
25: aload 6
invokevirtual org.xml.sax.SAXParseException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
27: return
end local 6 28: StackMap locals: com.sun.xml.internal.rngom.ast.builder.BuildException
StackMap stack:
aload 5
invokevirtual com.sun.xml.internal.rngom.ast.builder.BuildException.getCause:()Ljava/lang/Throwable;
instanceof org.xml.sax.SAXException
ifeq 32
29: aload 5
invokevirtual com.sun.xml.internal.rngom.ast.builder.BuildException.getCause:()Ljava/lang/Throwable;
checkcast org.xml.sax.SAXException
astore 6
start local 6 30: aload 6
invokevirtual org.xml.sax.SAXException.getException:()Ljava/lang/Exception;
ifnull 32
31: aload 6
invokevirtual org.xml.sax.SAXException.getException:()Ljava/lang/Exception;
invokevirtual java.lang.Exception.printStackTrace:()V
end local 6 32: StackMap locals:
StackMap stack:
aload 5
athrow
end local 5 33: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 args [Ljava/lang/String;
4 5 1 p Lcom/sun/xml/internal/rngom/parse/Parseable;
6 34 1 p Lcom/sun/xml/internal/rngom/parse/Parseable;
1 34 2 eh Lorg/xml/sax/ErrorHandler;
2 34 3 path Ljava/lang/String;
7 34 4 sb Lcom/sun/xml/internal/rngom/ast/builder/SchemaBuilder;
8 16 5 grammar Lcom/sun/xml/internal/rngom/digested/DGrammarPattern;
9 16 6 out Ljava/io/OutputStream;
10 16 7 factory Ljavax/xml/stream/XMLOutputFactory;
12 16 8 output Ljavax/xml/stream/XMLStreamWriter;
13 16 9 printer Lcom/sun/xml/internal/rngom/digested/DXMLPrinter;
18 33 5 e Lcom/sun/xml/internal/rngom/ast/builder/BuildException;
20 28 6 se Lorg/xml/sax/SAXParseException;
30 32 6 se Lorg/xml/sax/SAXException;
Exception table:
from to target type
7 16 17 Class com.sun.xml.internal.rngom.ast.builder.BuildException
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "DXMLPrinter.java"
NestMembers:
com.sun.xml.internal.rngom.digested.DXMLPrinter$1 com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor com.sun.xml.internal.rngom.digested.DXMLPrinter$NameClassXMLPrinterVisitor com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriter com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException
InnerClasses:
com.sun.xml.internal.rngom.digested.DXMLPrinter$1
protected DXMLPrinterVisitor = com.sun.xml.internal.rngom.digested.DXMLPrinter$DXMLPrinterVisitor of com.sun.xml.internal.rngom.digested.DXMLPrinter
protected NameClassXMLPrinterVisitor = com.sun.xml.internal.rngom.digested.DXMLPrinter$NameClassXMLPrinterVisitor of com.sun.xml.internal.rngom.digested.DXMLPrinter
protected XMLWriter = com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriter of com.sun.xml.internal.rngom.digested.DXMLPrinter
protected XMLWriterException = com.sun.xml.internal.rngom.digested.DXMLPrinter$XMLWriterException of com.sun.xml.internal.rngom.digested.DXMLPrinter