public interface jdk.internal.org.jline.reader.Parser
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: jdk.internal.org.jline.reader.Parser
super_class: java.lang.Object
{
public static final java.lang.String REGEX_VARIABLE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "[a-zA-Z_]{1,}[a-zA-Z0-9_-]*"
public static final java.lang.String REGEX_COMMAND;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "[:]{0,1}[a-zA-Z]{1,}[a-zA-Z0-9_-]*"
public abstract jdk.internal.org.jline.reader.ParsedLine parse(java.lang.String, int, jdk.internal.org.jline.reader.Parser$ParseContext);
descriptor: (Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws jdk.internal.org.jline.reader.SyntaxError
MethodParameters:
Name Flags
line
cursor
context
public jdk.internal.org.jline.reader.ParsedLine parse(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljdk/internal/org/jline/reader/ParsedLine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
getstatic jdk.internal.org.jline.reader.Parser$ParseContext.UNSPECIFIED:Ljdk/internal/org/jline/reader/Parser$ParseContext;
invokeinterface jdk.internal.org.jline.reader.Parser.parse:(Ljava/lang/String;ILjdk/internal/org/jline/reader/Parser$ParseContext;)Ljdk/internal/org/jline/reader/ParsedLine;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/reader/Parser;
0 1 1 line Ljava/lang/String;
0 1 2 cursor I
Exceptions:
throws jdk.internal.org.jline.reader.SyntaxError
MethodParameters:
Name Flags
line
cursor
public boolean isEscapeChar(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 92
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/Parser;
0 2 1 ch C
MethodParameters:
Name Flags
ch
public boolean validCommandName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
ldc "[:]{0,1}[a-zA-Z]{1,}[a-zA-Z0-9_-]*"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/Parser;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public boolean validVariableName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
ldc "[a-zA-Z_]{1,}[a-zA-Z0-9_-]*"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/reader/Parser;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getCommand(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: ldc ""
astore 2
start local 2 1: ldc "^\\s*[a-zA-Z_]{1,}[a-zA-Z0-9_-]*=([:]{0,1}[a-zA-Z]{1,}[a-zA-Z0-9_-]*)(\\s+.*|$)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 3
start local 3 2: aload 3
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 3: aload 4
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 6
4: aload 4
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 2
5: goto 12
6: StackMap locals: java.lang.String java.util.regex.Pattern java.util.regex.Matcher
StackMap stack:
aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
iconst_0
aaload
astore 2
7: aload 2
ldc "="
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 5
start local 5 8: iload 5
iconst_m1
if_icmple 10
9: aload 2
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
10: StackMap locals: int
StackMap stack:
aload 2
ldc "[:]{0,1}[a-zA-Z]{1,}[a-zA-Z0-9_-]*"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifne 12
11: ldc ""
astore 2
end local 5 12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 4 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/Parser;
0 13 1 line Ljava/lang/String;
1 13 2 out Ljava/lang/String;
2 13 3 patternCommand Ljava/util/regex/Pattern;
3 13 4 matcher Ljava/util/regex/Matcher;
8 12 5 idx I
MethodParameters:
Name Flags
line final
public java.lang.String getVariable(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: ldc "^\\s*([a-zA-Z_]{1,}[a-zA-Z0-9_-]*)\\s*=[^=~].*"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 3
start local 3 2: aload 3
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 3: aload 4
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 5
4: aload 4
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 2
5: StackMap locals: java.lang.String java.util.regex.Pattern java.util.regex.Matcher
StackMap stack:
aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/reader/Parser;
0 6 1 line Ljava/lang/String;
1 6 2 out Ljava/lang/String;
2 6 3 patternCommand Ljava/util/regex/Pattern;
3 6 4 matcher Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
line final
}
SourceFile: "Parser.java"
NestMembers:
jdk.internal.org.jline.reader.Parser$ParseContext
InnerClasses:
public final ParseContext = jdk.internal.org.jline.reader.Parser$ParseContext of jdk.internal.org.jline.reader.Parser