public class sun.rmi.rmic.newrmic.jrmp.JrmpGenerator implements sun.rmi.rmic.newrmic.Generator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.rmi.rmic.newrmic.jrmp.JrmpGenerator
super_class: java.lang.Object
{
private static final java.util.Map<java.lang.String, sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion> versionOptions;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;>;
private static final java.util.Set<java.lang.String> bootstrapClassNames;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion version;
descriptor: Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
1: putstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
2: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
ldc "-v1.1"
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.V1_1:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
ldc "-vcompat"
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.VCOMPAT:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
ldc "-v1.2"
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.V1_2:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
6: putstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
7: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
ldc "java.lang.Exception"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
8: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
ldc "java.rmi.Remote"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
9: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
ldc "java.rmi.RemoteException"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
ldc "java.lang.RuntimeException"
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.V1_2:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
putfield sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.version:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
public boolean parseArgs(java.lang.String[], sun.rmi.rmic.newrmic.Main);
descriptor: ([Ljava/lang/String;Lsun/rmi/rmic/newrmic/Main;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 12
3: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 4
aaload
astore 5
start local 5 4: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
aload 5
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
5: aload 3
ifnull 8
aload 3
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
6: aload 2
ldc "rmic.cannot.use.both"
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 5
aastore
invokevirtual sun.rmi.rmic.newrmic.Main.error:(Ljava/lang/String;[Ljava/lang/String;)V
7: iconst_0
ireturn
8: StackMap locals: java.lang.String
StackMap stack:
aload 5
astore 3
9: aload 0
getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.versionOptions:Ljava/util/Map;
aload 5
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion
putfield sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.version:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
10: aload 1
iload 4
aconst_null
aastore
end local 5 11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
aload 1
arraylength
if_icmplt 3
end local 4 13: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
0 14 1 args [Ljava/lang/String;
0 14 2 main Lsun/rmi/rmic/newrmic/Main;
1 14 3 explicitVersion Ljava/lang/String;
2 13 4 i I
4 11 5 arg Ljava/lang/String;
MethodParameters:
Name Flags
args
main
public java.lang.Class<? extends sun.rmi.rmic.newrmic.BatchEnvironment> envClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Lsun/rmi/rmic/newrmic/BatchEnvironment;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
Signature: ()Ljava/lang/Class<+Lsun/rmi/rmic/newrmic/BatchEnvironment;>;
public java.util.Set<java.lang.String> bootstrapClassNames();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.bootstrapClassNames:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public void generate(sun.rmi.rmic.newrmic.BatchEnvironment, com.sun.javadoc.ClassDoc, java.io.File);
descriptor: (Lsun/rmi/rmic/newrmic/BatchEnvironment;Lcom/sun/javadoc/ClassDoc;Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic sun.rmi.rmic.newrmic.jrmp.RemoteClass.forClass:(Lsun/rmi/rmic/newrmic/BatchEnvironment;Lcom/sun/javadoc/ClassDoc;)Lsun/rmi/rmic/newrmic/jrmp/RemoteClass;
astore 4
start local 4 1: aload 4
ifnonnull 3
2: return
3: StackMap locals: sun.rmi.rmic.newrmic.jrmp.RemoteClass
StackMap stack:
new sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter
dup
aload 1
aload 4
aload 0
getfield sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.version:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
invokespecial sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.<init>:(Lsun/rmi/rmic/newrmic/BatchEnvironment;Lsun/rmi/rmic/newrmic/jrmp/RemoteClass;Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;)V
4: astore 5
start local 5 5: aload 0
aload 5
invokevirtual sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.stubClassName:()Ljava/lang/String;
aload 3
invokevirtual sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.sourceFileForClass:(Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
astore 6
start local 6 6: new sun.rmi.rmic.newrmic.IndentingWriter
dup
7: new java.io.OutputStreamWriter
dup
new java.io.FileOutputStream
dup
aload 6
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
8: invokespecial sun.rmi.rmic.newrmic.IndentingWriter.<init>:(Ljava/io/Writer;)V
astore 7
start local 7 9: aload 5
aload 7
invokevirtual sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.writeStub:(Lsun/rmi/rmic/newrmic/IndentingWriter;)V
10: aload 7
invokevirtual sun.rmi.rmic.newrmic.IndentingWriter.close:()V
11: aload 1
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.verbose:()Z
ifeq 15
12: aload 1
ldc "rmic.wrote"
iconst_1
anewarray java.lang.String
dup
iconst_0
13: aload 6
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aastore
14: invokestatic sun.rmi.rmic.newrmic.Resources.getText:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.output:(Ljava/lang/String;)V
15: StackMap locals: sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter java.io.File sun.rmi.rmic.newrmic.IndentingWriter
StackMap stack:
aload 1
aload 6
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.addGeneratedFile:(Ljava/io/File;)V
end local 7 16: goto 20
StackMap locals: sun.rmi.rmic.newrmic.jrmp.JrmpGenerator sun.rmi.rmic.newrmic.BatchEnvironment com.sun.javadoc.ClassDoc java.io.File sun.rmi.rmic.newrmic.jrmp.RemoteClass sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter java.io.File
StackMap stack: java.io.IOException
17: pop
18: aload 1
ldc "rmic.cant.write"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 6
invokevirtual java.io.File.toString:()Ljava/lang/String;
aastore
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.error:(Ljava/lang/String;[Ljava/lang/String;)V
19: return
20: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.skeletonClassName:()Ljava/lang/String;
aload 3
invokevirtual sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.sourceFileForClass:(Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
21: astore 7
start local 7 22: aload 0
getfield sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.version:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.V1_1:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
if_acmpeq 24
23: aload 0
getfield sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.version:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
getstatic sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion.VCOMPAT:Lsun/rmi/rmic/newrmic/jrmp/Constants$StubVersion;
if_acmpne 40
24: StackMap locals: java.io.File
StackMap stack:
new sun.rmi.rmic.newrmic.IndentingWriter
dup
25: new java.io.OutputStreamWriter
dup
26: new java.io.FileOutputStream
dup
aload 7
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
27: invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
28: invokespecial sun.rmi.rmic.newrmic.IndentingWriter.<init>:(Ljava/io/Writer;)V
astore 8
start local 8 29: aload 5
aload 8
invokevirtual sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.writeSkeleton:(Lsun/rmi/rmic/newrmic/IndentingWriter;)V
30: aload 8
invokevirtual sun.rmi.rmic.newrmic.IndentingWriter.close:()V
31: aload 1
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.verbose:()Z
ifeq 35
32: aload 1
ldc "rmic.wrote"
iconst_1
anewarray java.lang.String
dup
iconst_0
33: aload 7
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aastore
34: invokestatic sun.rmi.rmic.newrmic.Resources.getText:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.output:(Ljava/lang/String;)V
35: StackMap locals: sun.rmi.rmic.newrmic.IndentingWriter
StackMap stack:
aload 1
aload 7
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.addGeneratedFile:(Ljava/io/File;)V
end local 8 36: goto 44
StackMap locals: sun.rmi.rmic.newrmic.jrmp.JrmpGenerator sun.rmi.rmic.newrmic.BatchEnvironment com.sun.javadoc.ClassDoc java.io.File sun.rmi.rmic.newrmic.jrmp.RemoteClass sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter java.io.File java.io.File
StackMap stack: java.io.IOException
37: pop
38: aload 1
ldc "rmic.cant.write"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 7
invokevirtual java.io.File.toString:()Ljava/lang/String;
aastore
invokevirtual sun.rmi.rmic.newrmic.BatchEnvironment.error:(Ljava/lang/String;[Ljava/lang/String;)V
39: return
40: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual sun.rmi.rmic.newrmic.jrmp.StubSkeletonWriter.skeletonClassName:()Ljava/lang/String;
aload 3
invokevirtual sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.classFileForClass:(Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
41: astore 8
start local 8 42: aload 7
invokevirtual java.io.File.delete:()Z
pop
43: aload 8
invokevirtual java.io.File.delete:()Z
pop
end local 8 44: StackMap locals:
StackMap stack:
return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
0 45 1 env Lsun/rmi/rmic/newrmic/BatchEnvironment;
0 45 2 inputClass Lcom/sun/javadoc/ClassDoc;
0 45 3 destDir Ljava/io/File;
1 45 4 remoteClass Lsun/rmi/rmic/newrmic/jrmp/RemoteClass;
5 45 5 writer Lsun/rmi/rmic/newrmic/jrmp/StubSkeletonWriter;
6 45 6 stubFile Ljava/io/File;
9 16 7 out Lsun/rmi/rmic/newrmic/IndentingWriter;
22 45 7 skeletonFile Ljava/io/File;
29 36 8 out Lsun/rmi/rmic/newrmic/IndentingWriter;
42 44 8 skeletonClassFile Ljava/io/File;
Exception table:
from to target type
6 16 17 Class java.io.IOException
24 36 37 Class java.io.IOException
MethodParameters:
Name Flags
env
inputClass
destDir
private java.io.File sourceFileForClass(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ldc ".java"
invokevirtual sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.fileForClass:(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
0 1 1 binaryName Ljava/lang/String;
0 1 2 destDir Ljava/io/File;
MethodParameters:
Name Flags
binaryName
destDir
private java.io.File classFileForClass(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ldc ".class"
invokevirtual sun.rmi.rmic.newrmic.jrmp.JrmpGenerator.fileForClass:(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
0 1 1 binaryName Ljava/lang/String;
0 1 2 destDir Ljava/io/File;
MethodParameters:
Name Flags
binaryName
destDir
private java.io.File fileForClass(java.lang.String, java.io.File, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/io/File;Ljava/lang/String;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 4
start local 4 1: new java.lang.StringBuilder
dup
aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 2: iload 4
iconst_m1
if_icmpeq 9
3: aload 1
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 4: aload 6
bipush 46
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 7
start local 7 5: new java.io.File
dup
aload 2
aload 7
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 8
start local 8 6: aload 8
invokevirtual java.io.File.exists:()Z
ifne 8
7: aload 8
invokevirtual java.io.File.mkdirs:()Z
pop
8: StackMap locals: sun.rmi.rmic.newrmic.jrmp.JrmpGenerator java.lang.String java.io.File java.lang.String int java.lang.String java.lang.String java.lang.String java.io.File
StackMap stack:
new java.io.File
dup
aload 8
aload 5
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 8 end local 7 end local 6 9: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 2
aload 5
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/rmi/rmic/newrmic/jrmp/JrmpGenerator;
0 10 1 binaryName Ljava/lang/String;
0 10 2 destDir Ljava/io/File;
0 10 3 ext Ljava/lang/String;
1 10 4 i I
2 10 5 classFileName Ljava/lang/String;
4 9 6 packageName Ljava/lang/String;
5 9 7 packagePath Ljava/lang/String;
6 9 8 packageDir Ljava/io/File;
MethodParameters:
Name Flags
binaryName
destDir
ext
}
SourceFile: "JrmpGenerator.java"
InnerClasses:
final StubVersion = sun.rmi.rmic.newrmic.jrmp.Constants$StubVersion of sun.rmi.rmic.newrmic.jrmp.Constants