public final class javax.swing.filechooser.FileNameExtensionFilter extends javax.swing.filechooser.FileFilter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.swing.filechooser.FileNameExtensionFilter
super_class: javax.swing.filechooser.FileFilter
{
private final java.lang.String description;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] extensions;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] lowerCaseExtensions;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial javax.swing.filechooser.FileFilter.<init>:()V
1: aload 2
ifnull 2
aload 2
arraylength
ifne 5
2: StackMap locals: javax.swing.filechooser.FileNameExtensionFilter java.lang.String java.lang.String[]
StackMap stack:
new java.lang.IllegalArgumentException
dup
3: ldc "Extensions must be non-null and not empty"
4: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.swing.filechooser.FileNameExtensionFilter.description:Ljava/lang/String;
6: aload 0
aload 2
arraylength
anewarray java.lang.String
putfield javax.swing.filechooser.FileNameExtensionFilter.extensions:[Ljava/lang/String;
7: aload 0
aload 2
arraylength
anewarray java.lang.String
putfield javax.swing.filechooser.FileNameExtensionFilter.lowerCaseExtensions:[Ljava/lang/String;
8: iconst_0
istore 3
start local 3 9: goto 17
10: StackMap locals: int
StackMap stack:
aload 2
iload 3
aaload
ifnull 11
aload 2
iload 3
aaload
invokevirtual java.lang.String.length:()I
ifne 14
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
12: ldc "Each extension must be non-null and not empty"
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.extensions:[Ljava/lang/String;
iload 3
aload 2
iload 3
aaload
aastore
15: aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.lowerCaseExtensions:[Ljava/lang/String;
iload 3
aload 2
iload 3
aaload
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
aastore
16: iinc 3 1
StackMap locals:
StackMap stack:
17: iload 3
aload 2
arraylength
if_icmplt 10
end local 3 18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljavax/swing/filechooser/FileNameExtensionFilter;
0 19 1 description Ljava/lang/String;
0 19 2 extensions [Ljava/lang/String;
9 18 3 i I
MethodParameters:
Name Flags
description
extensions
public boolean accept(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 1
ifnull 15
1: aload 1
invokevirtual java.io.File.isDirectory:()Z
ifeq 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 2
start local 2 4: aload 2
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 5: iload 3
ifle 15
iload 3
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpge 15
6: aload 2
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
7: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
8: astore 4
start local 4 9: aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.lowerCaseExtensions:[Ljava/lang/String;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 14
StackMap locals: javax.swing.filechooser.FileNameExtensionFilter java.io.File java.lang.String int java.lang.String top int int java.lang.String[]
StackMap stack:
10: aload 8
iload 6
aaload
astore 5
start local 5 11: aload 4
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
12: iconst_1
ireturn
end local 5 13: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 6
iload 7
if_icmplt 10
end local 4 end local 3 end local 2 15: StackMap locals: javax.swing.filechooser.FileNameExtensionFilter java.io.File
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/swing/filechooser/FileNameExtensionFilter;
0 16 1 f Ljava/io/File;
4 15 2 fileName Ljava/lang/String;
5 15 3 i I
9 15 4 desiredExtension Ljava/lang/String;
11 13 5 extension Ljava/lang/String;
MethodParameters:
Name Flags
f
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.description:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/filechooser/FileNameExtensionFilter;
public java.lang.String[] getExtensions();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.extensions:[Ljava/lang/String;
arraylength
anewarray java.lang.String
astore 1
start local 1 1: aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.extensions:[Ljava/lang/String;
iconst_0
aload 1
iconst_0
aload 0
getfield javax.swing.filechooser.FileNameExtensionFilter.extensions:[Ljava/lang/String;
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/filechooser/FileNameExtensionFilter;
1 3 1 result [Ljava/lang/String;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[description="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual javax.swing.filechooser.FileNameExtensionFilter.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc " extensions="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual javax.swing.filechooser.FileNameExtensionFilter.getExtensions:()[Ljava/lang/String;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/swing/filechooser/FileNameExtensionFilter;
}
SourceFile: "FileNameExtensionFilter.java"