public class jdk.internal.org.jline.reader.impl.completer.FileNameCompleter implements jdk.internal.org.jline.reader.Completer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter
super_class: java.lang.Object
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
public void complete(jdk.internal.org.jline.reader.LineReader, jdk.internal.org.jline.reader.ParsedLine, java.util.List<jdk.internal.org.jline.reader.Candidate>);
descriptor: (Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.$assertionsDisabled:Z
ifne 1
aload 2
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.$assertionsDisabled:Z
ifne 2
aload 3
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 2
invokeinterface jdk.internal.org.jline.reader.ParsedLine.word:()Ljava/lang/String;
iconst_0
aload 2
invokeinterface jdk.internal.org.jline.reader.ParsedLine.wordCursor:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 3: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getUserDir:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
astore 7
start local 7 4: aload 4
aload 7
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 8
start local 8 5: iload 8
iflt 15
6: aload 4
iconst_0
iload 8
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 7: aload 6
ldc "~"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
8: aload 6
new java.lang.StringBuilder
dup
ldc "~"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
9: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getUserHome:()Ljava/nio/file/Path;
aload 6
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 10: goto 17
end local 5 11: StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter jdk.internal.org.jline.reader.LineReader jdk.internal.org.jline.reader.ParsedLine java.util.List java.lang.String top java.lang.String java.lang.String int
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getUserHome:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
aload 6
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 12: goto 17
end local 5 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getUserDir:()Ljava/nio/file/Path;
aload 6
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 14: goto 17
end local 6 end local 5 15: StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter jdk.internal.org.jline.reader.LineReader jdk.internal.org.jline.reader.ParsedLine java.util.List java.lang.String top top java.lang.String int
StackMap stack:
ldc ""
astore 6
start local 6 16: aload 0
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getUserDir:()Ljava/nio/file/Path;
astore 5
start local 5 17: StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter jdk.internal.org.jline.reader.LineReader jdk.internal.org.jline.reader.ParsedLine java.util.List java.lang.String java.nio.file.Path java.lang.String java.lang.String int
StackMap stack:
aload 5
aload 0
invokedynamic accept(Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;)Ljava/nio/file/DirectoryStream$Filter;
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;)Z
jdk/internal/org/jline/reader/impl/completer/FileNameCompleter.accept(Ljava/nio/file/Path;)Z (5)
(Ljava/nio/file/Path;)Z
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;
aload 0
aload 6
aload 3
aload 1
aload 7
invokedynamic accept(Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;Ljava/lang/String;Ljava/util/List;Ljdk/internal/org/jline/reader/LineReader;Ljava/lang/String;)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
jdk/internal/org/jline/reader/impl/completer/FileNameCompleter.lambda$1(Ljava/lang/String;Ljava/util/List;Ljdk/internal/org/jline/reader/LineReader;Ljava/lang/String;Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.nio.file.DirectoryStream.forEach:(Ljava/util/function/Consumer;)V
18: goto 20
StackMap locals:
StackMap stack: java.io.IOException
19: pop
20: StackMap locals:
StackMap stack:
return
end local 8 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 21 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
0 21 1 reader Ljdk/internal/org/jline/reader/LineReader;
0 21 2 commandLine Ljdk/internal/org/jline/reader/ParsedLine;
0 21 3 candidates Ljava/util/List<Ljdk/internal/org/jline/reader/Candidate;>;
3 21 4 buffer Ljava/lang/String;
10 11 5 current Ljava/nio/file/Path;
12 13 5 current Ljava/nio/file/Path;
14 15 5 current Ljava/nio/file/Path;
17 21 5 current Ljava/nio/file/Path;
7 15 6 curBuf Ljava/lang/String;
16 21 6 curBuf Ljava/lang/String;
4 21 7 sep Ljava/lang/String;
5 21 8 lastSep I
Exception table:
from to target type
17 18 19 Class java.io.IOException
Signature: (Ljdk/internal/org/jline/reader/LineReader;Ljdk/internal/org/jline/reader/ParsedLine;Ljava/util/List<Ljdk/internal/org/jline/reader/Candidate;>;)V
MethodParameters:
Name Flags
reader
commandLine
candidates final
protected boolean accept(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.nio.file.Files.isHidden:(Ljava/nio/file/Path;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
3: StackMap locals:
StackMap stack: java.io.IOException
pop
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
0 5 1 path Ljava/nio/file/Path;
Exception table:
from to target type
0 2 3 Class java.io.IOException
MethodParameters:
Name Flags
path
protected java.nio.file.Path getUserDir();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "user.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
protected java.nio.file.Path getUserHome();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
protected java.lang.String getDisplay(jdk.internal.org.jline.terminal.Terminal, java.nio.file.Path);
descriptor: (Ljdk/internal/org/jline/terminal/Terminal;Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 7
2: new jdk.internal.org.jline.utils.AttributedStringBuilder
dup
invokespecial jdk.internal.org.jline.utils.AttributedStringBuilder.<init>:()V
astore 4
start local 4 3: aload 4
getstatic jdk.internal.org.jline.utils.AttributedStyle.BOLD:Ljdk/internal/org/jline/utils/AttributedStyle;
iconst_1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.foreground:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
aload 3
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.styled:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/CharSequence;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
4: aload 4
ldc "/"
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(Ljava/lang/CharSequence;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
5: aload 4
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.toAnsi:(Ljdk/internal/org/jline/terminal/Terminal;)Ljava/lang/String;
astore 3
end local 4 6: goto 12
StackMap locals: java.lang.String
StackMap stack:
7: aload 2
invokestatic java.nio.file.Files.isSymbolicLink:(Ljava/nio/file/Path;)Z
ifeq 12
8: new jdk.internal.org.jline.utils.AttributedStringBuilder
dup
invokespecial jdk.internal.org.jline.utils.AttributedStringBuilder.<init>:()V
astore 4
start local 4 9: aload 4
getstatic jdk.internal.org.jline.utils.AttributedStyle.BOLD:Ljdk/internal/org/jline/utils/AttributedStyle;
iconst_1
invokevirtual jdk.internal.org.jline.utils.AttributedStyle.foreground:(I)Ljdk/internal/org/jline/utils/AttributedStyle;
aload 3
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.styled:(Ljdk/internal/org/jline/utils/AttributedStyle;Ljava/lang/CharSequence;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
10: aload 4
ldc "@"
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.append:(Ljava/lang/CharSequence;)Ljdk/internal/org/jline/utils/AttributedStringBuilder;
pop
11: aload 4
aload 1
invokevirtual jdk.internal.org.jline.utils.AttributedStringBuilder.toAnsi:(Ljdk/internal/org/jline/terminal/Terminal;)Ljava/lang/String;
astore 3
end local 4 12: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
0 13 1 terminal Ljdk/internal/org/jline/terminal/Terminal;
0 13 2 p Ljava/nio/file/Path;
1 13 3 name Ljava/lang/String;
3 6 4 sb Ljdk/internal/org/jline/utils/AttributedStringBuilder;
9 12 4 sb Ljdk/internal/org/jline/utils/AttributedStringBuilder;
MethodParameters:
Name Flags
terminal
p
private void lambda$1(java.lang.String, java.util.List, jdk.internal.org.jline.reader.LineReader, java.lang.String, java.nio.file.Path);
descriptor: (Ljava/lang/String;Ljava/util/List;Ljdk/internal/org/jline/reader/LineReader;Ljava/lang/String;Ljava/nio/file/Path;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=10, locals=7, args_size=6
start local 0 start local 5 0: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 1: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 15
2: aload 2
3: new jdk.internal.org.jline.reader.Candidate
dup
4: new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
getstatic jdk.internal.org.jline.reader.LineReader$Option.AUTO_PARAM_SLASH:Ljdk/internal/org/jline/reader/LineReader$Option;
invokeinterface jdk.internal.org.jline.reader.LineReader.isSet:(Ljdk/internal/org/jline/reader/LineReader$Option;)Z
ifeq 5
aload 4
goto 6
StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter java.lang.String java.util.List jdk.internal.org.jline.reader.LineReader java.lang.String java.nio.file.Path java.lang.String
StackMap stack: java.util.List new 3 new 3 java.lang.StringBuilder
5: ldc ""
StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter java.lang.String java.util.List jdk.internal.org.jline.reader.LineReader java.lang.String java.nio.file.Path java.lang.String
StackMap stack: java.util.List new 3 new 3 java.lang.StringBuilder java.lang.String
6: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: aload 0
aload 3
invokeinterface jdk.internal.org.jline.reader.LineReader.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
aload 5
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getDisplay:(Ljdk/internal/org/jline/terminal/Terminal;Ljava/nio/file/Path;)Ljava/lang/String;
8: aconst_null
aconst_null
9: aload 3
getstatic jdk.internal.org.jline.reader.LineReader$Option.AUTO_REMOVE_SLASH:Ljdk/internal/org/jline/reader/LineReader$Option;
invokeinterface jdk.internal.org.jline.reader.LineReader.isSet:(Ljdk/internal/org/jline/reader/LineReader$Option;)Z
ifeq 10
aload 4
goto 11
StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter java.lang.String java.util.List jdk.internal.org.jline.reader.LineReader java.lang.String java.nio.file.Path java.lang.String
StackMap stack: java.util.List new 3 new 3 java.lang.String java.lang.String null null
10: aconst_null
11: StackMap locals: jdk.internal.org.jline.reader.impl.completer.FileNameCompleter java.lang.String java.util.List jdk.internal.org.jline.reader.LineReader java.lang.String java.nio.file.Path java.lang.String
StackMap stack: java.util.List new 3 new 3 java.lang.String java.lang.String null null java.lang.String
aconst_null
12: iconst_0
invokespecial jdk.internal.org.jline.reader.Candidate.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
13: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: goto 18
15: StackMap locals:
StackMap stack:
aload 2
new jdk.internal.org.jline.reader.Candidate
dup
aload 6
aload 0
aload 3
invokeinterface jdk.internal.org.jline.reader.LineReader.getTerminal:()Ljdk/internal/org/jline/terminal/Terminal;
aload 5
invokevirtual jdk.internal.org.jline.reader.impl.completer.FileNameCompleter.getDisplay:(Ljdk/internal/org/jline/terminal/Terminal;Ljava/nio/file/Path;)Ljava/lang/String;
16: aconst_null
aconst_null
aconst_null
aconst_null
iconst_1
invokespecial jdk.internal.org.jline.reader.Candidate.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
17: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 18: StackMap locals:
StackMap stack:
return
end local 5 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/org/jline/reader/impl/completer/FileNameCompleter;
0 19 5 p Ljava/nio/file/Path;
1 18 6 value Ljava/lang/String;
}
SourceFile: "FileNameCompleter.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Filter = java.nio.file.DirectoryStream$Filter of java.nio.file.DirectoryStream
public final Option = jdk.internal.org.jline.reader.LineReader$Option of jdk.internal.org.jline.reader.LineReader
RuntimeVisibleAnnotations:
java.lang.Deprecated()