public class com.sun.tools.sjavac.comp.PathAndPackageVerifier 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.PathAndPackageVerifier
super_class: java.lang.Object
{
java.util.Set<com.sun.source.tree.CompilationUnitTree> misplacedCompilationUnits;
descriptor: Ljava/util/Set;
flags: (0x0000)
Signature: Ljava/util/Set<Lcom/sun/source/tree/CompilationUnitTree;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 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.PathAndPackageVerifier.misplacedCompilationUnits:Ljava/util/Set;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/sjavac/comp/PathAndPackageVerifier;
public void finished(com.sun.source.util.TaskEvent);
descriptor: (Lcom/sun/source/util/TaskEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.source.util.TaskEvent.getKind:()Lcom/sun/source/util/TaskEvent$Kind;
getstatic com.sun.source.util.TaskEvent$Kind.ANALYZE:Lcom/sun/source/util/TaskEvent$Kind;
if_acmpne 13
1: aload 1
invokevirtual com.sun.source.util.TaskEvent.getCompilationUnit:()Lcom/sun/source/tree/CompilationUnitTree;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: return
4: StackMap locals: com.sun.source.tree.CompilationUnitTree
StackMap stack:
aload 2
invokeinterface com.sun.source.tree.CompilationUnitTree.getSourceFile:()Ljavax/tools/JavaFileObject;
astore 3
start local 3 5: aload 3
ifnonnull 7
6: return
7: StackMap locals: javax.tools.JavaFileObject
StackMap stack:
aload 2
invokeinterface com.sun.source.tree.CompilationUnitTree.getPackageName:()Lcom/sun/source/tree/ExpressionTree;
checkcast com.sun.tools.javac.tree.JCTree
astore 4
start local 4 8: aload 4
ifnonnull 10
9: return
10: StackMap locals: com.sun.tools.javac.tree.JCTree
StackMap stack:
aload 3
invokeinterface javax.tools.JavaFileObject.toUri:()Ljava/net/URI;
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 5
start local 5 11: aload 0
aload 5
aload 4
invokevirtual com.sun.tools.sjavac.comp.PathAndPackageVerifier.checkPathAndPackage:(Ljava/nio/file/Path;Lcom/sun/tools/javac/tree/JCTree;)Z
ifne 13
12: aload 0
getfield com.sun.tools.sjavac.comp.PathAndPackageVerifier.misplacedCompilationUnits:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 end local 3 end local 2 13: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.source.util.TaskEvent.getKind:()Lcom/sun/source/util/TaskEvent$Kind;
getstatic com.sun.source.util.TaskEvent$Kind.COMPILATION:Lcom/sun/source/util/TaskEvent$Kind;
if_acmpne 20
14: aload 0
getfield com.sun.tools.sjavac.comp.PathAndPackageVerifier.misplacedCompilationUnits:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 19
StackMap locals: com.sun.tools.sjavac.comp.PathAndPackageVerifier com.sun.source.util.TaskEvent top java.util.Iterator
StackMap stack:
15: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.source.tree.CompilationUnitTree
astore 2
start local 2 16: ldc "Misplaced compilation unit."
invokestatic com.sun.tools.sjavac.Log.error:(Ljava/lang/String;)V
17: new java.lang.StringBuilder
dup
ldc " Directory: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface com.sun.source.tree.CompilationUnitTree.getSourceFile:()Ljavax/tools/JavaFileObject;
invokeinterface javax.tools.JavaFileObject.toUri:()Ljava/net/URI;
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
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.error:(Ljava/lang/String;)V
18: new java.lang.StringBuilder
dup
ldc " Package: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface com.sun.source.tree.CompilationUnitTree.getPackageName:()Lcom/sun/source/tree/ExpressionTree;
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.error:(Ljava/lang/String;)V
end local 2 19: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
20: StackMap locals: com.sun.tools.sjavac.comp.PathAndPackageVerifier com.sun.source.util.TaskEvent
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/sun/tools/sjavac/comp/PathAndPackageVerifier;
0 21 1 e Lcom/sun/source/util/TaskEvent;
2 13 2 cu Lcom/sun/source/tree/CompilationUnitTree;
5 13 3 jfo Ljavax/tools/JavaFileObject;
8 13 4 pkg Lcom/sun/tools/javac/tree/JCTree;
11 13 5 dir Ljava/nio/file/Path;
16 19 2 cu Lcom/sun/source/tree/CompilationUnitTree;
MethodParameters:
Name Flags
e
public boolean errorsDiscovered();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.sjavac.comp.PathAndPackageVerifier.misplacedCompilationUnits:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/sjavac/comp/PathAndPackageVerifier;
private boolean checkPathAndPackage(java.nio.file.Path, com.sun.tools.javac.tree.JCTree);
descriptor: (Ljava/nio/file/Path;Lcom/sun/tools/javac/tree/JCTree;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new com.sun.tools.sjavac.comp.PathAndPackageVerifier$ParentIterator
dup
aload 1
invokespecial com.sun.tools.sjavac.comp.PathAndPackageVerifier$ParentIterator.<init>:(Ljava/nio/file/Path;)V
astore 3
start local 3 1: new com.sun.tools.sjavac.comp.PathAndPackageVerifier$EnclosingPkgIterator
dup
aload 2
invokespecial com.sun.tools.sjavac.comp.PathAndPackageVerifier$EnclosingPkgIterator.<init>:(Lcom/sun/tools/javac/tree/JCTree;)V
astore 4
start local 4 2: goto 5
3: StackMap locals: java.util.Iterator java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 6
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 7
iconst_0
goto 8
StackMap locals:
StackMap stack:
7: iconst_1
StackMap locals:
StackMap stack: int
8: ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/sjavac/comp/PathAndPackageVerifier;
0 9 1 dir Ljava/nio/file/Path;
0 9 2 pkgName Lcom/sun/tools/javac/tree/JCTree;
1 9 3 pathIter Ljava/util/Iterator<Ljava/lang/String;>;
2 9 4 pkgIter Ljava/util/Iterator<Ljava/lang/String;>;
MethodParameters:
Name Flags
dir
pkgName
}
SourceFile: "PathAndPackageVerifier.java"
NestMembers:
com.sun.tools.sjavac.comp.PathAndPackageVerifier$EnclosingPkgIterator com.sun.tools.sjavac.comp.PathAndPackageVerifier$ParentIterator
InnerClasses:
public final Kind = com.sun.source.util.TaskEvent$Kind of com.sun.source.util.TaskEvent
private EnclosingPkgIterator = com.sun.tools.sjavac.comp.PathAndPackageVerifier$EnclosingPkgIterator of com.sun.tools.sjavac.comp.PathAndPackageVerifier
private ParentIterator = com.sun.tools.sjavac.comp.PathAndPackageVerifier$ParentIterator of com.sun.tools.sjavac.comp.PathAndPackageVerifier