public class org.antlr.v4.misc.Utils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.antlr.v4.misc.Utils
super_class: java.lang.Object
{
public static final int INTEGER_POOL_MAX_VALUE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
static java.lang.Integer[] ints;
descriptor: [Ljava/lang/Integer;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: sipush 1001
anewarray java.lang.Integer
putstatic org.antlr.v4.misc.Utils.ints:[Ljava/lang/Integer;
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 Lorg/antlr/v4/misc/Utils;
public static java.lang.String stripFileExtension(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 2: iload 1
ifge 3
aload 0
areturn
3: StackMap locals: int
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
2 4 1 lastDot I
MethodParameters:
Name Flags
name
public static java.lang.String join(java.lang.Object[], java.lang.String);
descriptor: ([Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 0
iload 3
aaload
astore 4
start local 4 4: aload 2
aload 4
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: iload 3
iconst_1
iadd
aload 0
arraylength
if_icmpge 7
6: aload 2
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 0
arraylength
if_icmplt 3
end local 3 9: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 a [Ljava/lang/Object;
0 10 1 separator Ljava/lang/String;
1 10 2 buf Ljava/lang/StringBuilder;
2 9 3 i I
4 7 4 o Ljava/lang/Object;
MethodParameters:
Name Flags
a
separator
public static java.lang.String sortLinesInString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
ldc "\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;)V
2: aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 2
start local 2 3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 4: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: java.lang.String java.lang.String[] java.util.List java.lang.StringBuilder top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 6: aload 3
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 3
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 s Ljava/lang/String;
1 10 1 lines [Ljava/lang/String;
3 10 2 linesL Ljava/util/List<Ljava/lang/String;>;
4 10 3 buf Ljava/lang/StringBuilder;
6 8 4 l Ljava/lang/String;
MethodParameters:
Name Flags
s
public static <T extends org.antlr.v4.tool.ast.GrammarAST> java.util.List<java.lang.String> nodesToStrings(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 2: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 2
start local 2 4: aload 1
aload 2
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getText:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 StackMap locals:
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 nodes Ljava/util/List<TT;>;
2 7 1 a Ljava/util/List<Ljava/lang/String;>;
4 5 2 t TT;
Signature: <T:Lorg/antlr/v4/tool/ast/GrammarAST;>(Ljava/util/List<TT;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
nodes
public static java.lang.String capitalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String decapitalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static <From, To> java.util.List<To> select(java.util.List<From>, org.antlr.v4.misc.Utils$Func1<From, To>);
descriptor: (Ljava/util/List;Lorg/antlr/v4/misc/Utils$Func1;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: java.util.List org.antlr.v4.misc.Utils$Func1 java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 4: aload 2
aload 1
aload 3
invokeinterface org.antlr.v4.misc.Utils$Func1.exec:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 list Ljava/util/List<TFrom;>;
0 7 1 selector Lorg/antlr/v4/misc/Utils$Func1<TFrom;TTo;>;
2 7 2 b Ljava/util/List<TTo;>;
4 5 3 f TFrom;
Signature: <From:Ljava/lang/Object;To:Ljava/lang/Object;>(Ljava/util/List<TFrom;>;Lorg/antlr/v4/misc/Utils$Func1<TFrom;TTo;>;)Ljava/util/List<TTo;>;
MethodParameters:
Name Flags
list
selector
public static <T> T find(java.util.List<?>, java.lang.Class<T>);
descriptor: (Ljava/util/List;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: java.util.List java.lang.Class top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 3
aload 1
aload 2
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 ops Ljava/util/List<*>;
0 5 1 cl Ljava/lang/Class<TT;>;
2 3 2 o Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<*>;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
ops
cl
public static <T> int indexOf(java.util.List<? extends T>, org.antlr.v4.misc.Utils$Filter<T>);
descriptor: (Ljava/util/List;Lorg/antlr/v4/misc/Utils$Filter;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 1
aload 0
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface org.antlr.v4.misc.Utils$Filter.select:(Ljava/lang/Object;)Z
ifeq 3
iload 2
ireturn
3: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
4: iload 2
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 5: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 elems Ljava/util/List<+TT;>;
0 6 1 filter Lorg/antlr/v4/misc/Utils$Filter<TT;>;
1 5 2 i I
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<+TT;>;Lorg/antlr/v4/misc/Utils$Filter<TT;>;)I
MethodParameters:
Name Flags
elems
filter
public static <T> int lastIndexOf(java.util.List<? extends T>, org.antlr.v4.misc.Utils$Filter<T>);
descriptor: (Ljava/util/List;Lorg/antlr/v4/misc/Utils$Filter;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 1
aload 0
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokeinterface org.antlr.v4.misc.Utils$Filter.select:(Ljava/lang/Object;)Z
ifeq 3
iload 2
ireturn
3: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
4: iload 2
ifge 2
end local 2 5: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 elems Ljava/util/List<+TT;>;
0 6 1 filter Lorg/antlr/v4/misc/Utils$Filter<TT;>;
1 5 2 i I
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<+TT;>;Lorg/antlr/v4/misc/Utils$Filter<TT;>;)I
MethodParameters:
Name Flags
elems
filter
public static void setSize(java.util.List<?>, );
descriptor: (Ljava/util/List;I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
invokeinterface java.util.List.size:()I
if_icmpge 4
1: aload 0
iload 1
aload 0
invokeinterface java.util.List.size:()I
invokeinterface java.util.List.subList:(II)Ljava/util/List;
invokeinterface java.util.List.clear:()V
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
iload 1
aload 0
invokeinterface java.util.List.size:()I
if_icmpgt 3
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 list Ljava/util/List<*>;
0 6 1 size I
Signature: (Ljava/util/List<*>;I)V
MethodParameters:
Name Flags
list
size
}
SourceFile: "Utils.java"
NestMembers:
org.antlr.v4.misc.Utils$Filter org.antlr.v4.misc.Utils$Func0 org.antlr.v4.misc.Utils$Func1
InnerClasses:
public abstract Filter = org.antlr.v4.misc.Utils$Filter of org.antlr.v4.misc.Utils
public abstract Func0 = org.antlr.v4.misc.Utils$Func0 of org.antlr.v4.misc.Utils
public abstract Func1 = org.antlr.v4.misc.Utils$Func1 of org.antlr.v4.misc.Utils