public class com.sun.tools.sjavac.comp.dependencies.PublicApiCollector implements com.sun.source.util.TaskListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.sjavac.comp.dependencies.PublicApiCollector
super_class: java.lang.Object
{
private com.sun.tools.javac.util.Context context;
descriptor: Lcom/sun/tools/javac/util/Context;
flags: (0x0002) ACC_PRIVATE
private final java.util.Set<com.sun.tools.javac.code.Symbol$ClassSymbol> classSymbols;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lcom/sun/tools/javac/code/Symbol$ClassSymbol;>;
private final java.util.Collection<javax.tools.JavaFileObject> explicitJFOs;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljavax/tools/JavaFileObject;>;
private java.util.Map<java.lang.String, com.sun.tools.sjavac.pubapi.PubApi> explicitPubApis;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lcom/sun/tools/sjavac/pubapi/PubApi;>;
private java.util.Map<java.lang.String, com.sun.tools.sjavac.pubapi.PubApi> nonExplicitPubApis;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lcom/sun/tools/sjavac/pubapi/PubApi;>;
private static volatile int[] $SWITCH_TABLE$com$sun$source$util$TaskEvent$Kind;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(com.sun.tools.javac.util.Context, java.util.Collection<javax.tools.JavaFileObject>);
descriptor: (Lcom/sun/tools/javac/util/Context;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.classSymbols:Ljava/util/Set;
2: aload 0
aload 1
putfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.context:Lcom/sun/tools/javac/util/Context;
3: aload 0
aload 2
putfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.explicitJFOs:Ljava/util/Collection;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/sjavac/comp/dependencies/PublicApiCollector;
0 5 1 context Lcom/sun/tools/javac/util/Context;
0 5 2 explicitJFOs Ljava/util/Collection<Ljavax/tools/JavaFileObject;>;
Signature: (Lcom/sun/tools/javac/util/Context;Ljava/util/Collection<Ljavax/tools/JavaFileObject;>;)V
MethodParameters:
Name Flags
context
explicitJFOs
public void finished(com.sun.source.util.TaskEvent);
descriptor: (Lcom/sun/source/util/TaskEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.$SWITCH_TABLE$com$sun$source$util$TaskEvent$Kind:()[I
aload 1
invokevirtual com.sun.source.util.TaskEvent.getKind:()Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iaload
tableswitch { // 3 - 7
3: 1
4: 14
5: 14
6: 14
7: 3
default: 14
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.source.util.TaskEvent.getCompilationUnit:()Lcom/sun/source/tree/CompilationUnitTree;
checkcast com.sun.tools.javac.tree.JCTree$JCCompilationUnit
invokevirtual com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.collectClassSymbols:(Lcom/sun/tools/javac/tree/JCTree$JCCompilationUnit;)V
2: goto 14
3: StackMap locals:
StackMap stack:
ldc "Compilation finished"
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
4: ldc "Extracting pub APIs for the following symbols:"
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
5: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.classSymbols:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: com.sun.tools.sjavac.comp.dependencies.PublicApiCollector com.sun.source.util.TaskEvent top java.util.Iterator
StackMap stack:
6: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.javac.code.Symbol$ClassSymbol
astore 2
start local 2 7: new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
getfield com.sun.tools.javac.code.Symbol$ClassSymbol.fullname:Lcom/sun/tools/javac/util/Name;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
end local 2 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
9: aload 0
invokevirtual com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.extractPubApis:()V
10: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.context:Lcom/sun/tools/javac/util/Context;
invokestatic com.sun.tools.sjavac.comp.PubAPIs.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/sjavac/comp/PubAPIs;
astore 2
start local 2 11: aload 0
aload 2
aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.explicitJFOs:Ljava/util/Collection;
iconst_1
invokevirtual com.sun.tools.sjavac.comp.PubAPIs.getPubapis:(Ljava/util/Collection;Z)Ljava/util/Map;
putfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.explicitPubApis:Ljava/util/Map;
12: aload 0
aload 2
aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.explicitJFOs:Ljava/util/Collection;
iconst_0
invokevirtual com.sun.tools.sjavac.comp.PubAPIs.getPubapis:(Ljava/util/Collection;Z)Ljava/util/Map;
putfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.nonExplicitPubApis:Ljava/util/Map;
13: ldc "done"
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
end local 2 14: StackMap locals: com.sun.tools.sjavac.comp.dependencies.PublicApiCollector com.sun.source.util.TaskEvent
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/tools/sjavac/comp/dependencies/PublicApiCollector;
0 15 1 e Lcom/sun/source/util/TaskEvent;
7 8 2 cs Lcom/sun/tools/javac/code/Symbol$ClassSymbol;
11 14 2 pa Lcom/sun/tools/sjavac/comp/PubAPIs;
MethodParameters:
Name Flags
e
private void collectClassSymbols(com.sun.tools.javac.tree.JCTree$JCCompilationUnit);
descriptor: (Lcom/sun/tools/javac/tree/JCTree$JCCompilationUnit;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.tools.javac.tree.JCTree$JCCompilationUnit.getTypeDecls:()Lcom/sun/tools/javac/util/List;
invokevirtual com.sun.tools.javac.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: com.sun.tools.sjavac.comp.dependencies.PublicApiCollector com.sun.tools.javac.tree.JCTree$JCCompilationUnit top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.Tree
astore 2
start local 2 2: aload 2
instanceof com.sun.tools.javac.tree.JCTree$JCClassDecl
ifeq 4
3: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.classSymbols:Ljava/util/Set;
aload 2
checkcast com.sun.tools.javac.tree.JCTree$JCClassDecl
getfield com.sun.tools.javac.tree.JCTree$JCClassDecl.sym:Lcom/sun/tools/javac/code/Symbol$ClassSymbol;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/tools/sjavac/comp/dependencies/PublicApiCollector;
0 6 1 cu Lcom/sun/tools/javac/tree/JCTree$JCCompilationUnit;
2 4 2 t Lcom/sun/source/tree/Tree;
MethodParameters:
Name Flags
cu
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.context:Lcom/sun/tools/javac/util/Context;
invokestatic com.sun.tools.sjavac.comp.PubAPIs.instance:(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/sjavac/comp/PubAPIs;
astore 1
start local 1 1: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.classSymbols:Ljava/util/Set;
aload 1
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Lcom/sun/tools/sjavac/comp/PubAPIs;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/sun/tools/sjavac/comp/PubAPIs.visitPubapi(Ljavax/lang/model/element/Element;)V (5)
(Lcom/sun/tools/javac/code/Symbol$ClassSymbol;)V
invokeinterface java.util.Set.forEach:(Ljava/util/function/Consumer;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/sjavac/comp/dependencies/PublicApiCollector;
1 3 1 pubApis Lcom/sun/tools/sjavac/comp/PubAPIs;
public java.util.Map<java.lang.String, com.sun.tools.sjavac.pubapi.PubApi> getPubApis(boolean);
descriptor: (Z)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.explicitPubApis:Ljava/util/Map;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.nonExplicitPubApis:Ljava/util/Map;
StackMap locals:
StackMap stack: java.util.Map
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/sjavac/comp/dependencies/PublicApiCollector;
0 3 1 explicit Z
Signature: (Z)Ljava/util/Map<Ljava/lang/String;Lcom/sun/tools/sjavac/pubapi/PubApi;>;
MethodParameters:
Name Flags
explicit
static int[] $SWITCH_TABLE$com$sun$source$util$TaskEvent$Kind();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.$SWITCH_TABLE$com$sun$source$util$TaskEvent$Kind:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic com.sun.source.util.TaskEvent$Kind.values:()[Lcom/sun/source/util/TaskEvent$Kind;
arraylength
newarray 10
astore 0
2: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.ANALYZE:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.ANNOTATION_PROCESSING:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iconst_5
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.ANNOTATION_PROCESSING_ROUND:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
bipush 6
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.COMPILATION:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
bipush 7
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.ENTER:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.GENERATE:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iconst_4
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic com.sun.source.util.TaskEvent$Kind.PARSE:Lcom/sun/source/util/TaskEvent$Kind;
invokevirtual com.sun.source.util.TaskEvent$Kind.ordinal:()I
iconst_1
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
dup
putstatic com.sun.tools.sjavac.comp.dependencies.PublicApiCollector.$SWITCH_TABLE$com$sun$source$util$TaskEvent$Kind:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
}
SourceFile: "PublicApiCollector.java"
InnerClasses:
public final Kind = com.sun.source.util.TaskEvent$Kind of com.sun.source.util.TaskEvent
public ClassSymbol = com.sun.tools.javac.code.Symbol$ClassSymbol of com.sun.tools.javac.code.Symbol
public JCClassDecl = com.sun.tools.javac.tree.JCTree$JCClassDecl of com.sun.tools.javac.tree.JCTree
public JCCompilationUnit = com.sun.tools.javac.tree.JCTree$JCCompilationUnit of com.sun.tools.javac.tree.JCTree
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles