public class org.stringtemplate.v4.misc.Misc
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.stringtemplate.v4.misc.Misc
super_class: java.lang.Object
{
public static final java.lang.String newline;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic org.stringtemplate.v4.misc.Misc.newline:Ljava/lang/String;
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/stringtemplate/v4/misc/Misc;
public static boolean referenceEquals(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 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 x Ljava/lang/Object;
0 2 1 y Ljava/lang/Object;
MethodParameters:
Name Flags
x
y
public static java.lang.String join(java.util.Iterator<?>, java.lang.String);
descriptor: (Ljava/util/Iterator;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, 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: goto 5
2: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 2
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
3: aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 5
4: aload 2
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: 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 7 0 iter Ljava/util/Iterator<*>;
0 7 1 separator Ljava/lang/String;
1 7 2 buf Ljava/lang/StringBuilder;
Signature: (Ljava/util/Iterator<*>;Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
iter
separator
public static java.lang.String strip(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aload 0
invokevirtual java.lang.String.length:()I
iload 1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 n I
MethodParameters:
Name Flags
s
n
public static java.lang.String trimOneStartingNewline(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "\r\n"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
goto 2
1: StackMap locals:
StackMap stack:
aload 0
ldc "\n"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String trimOneTrailingNewline(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: aload 0
ldc "\r\n"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
goto 2
1: StackMap locals:
StackMap stack:
aload 0
ldc "\n"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String stripLastPathElement(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
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: iload 1
ifge 2
aload 0
areturn
2: 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 3 0 f Ljava/lang/String;
1 3 1 slash I
MethodParameters:
Name Flags
f
public static java.lang.String getFileNameNoSuffix(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: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokestatic org.stringtemplate.v4.misc.Misc.getFileName:(Ljava/lang/String;)Ljava/lang/String;
astore 0
2: aload 0
iconst_0
aload 0
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 f Ljava/lang/String;
MethodParameters:
Name Flags
f
public static java.lang.String getFileName(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:
new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 2: aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 fullFileName Ljava/lang/String;
2 3 1 f Ljava/io/File;
MethodParameters:
Name Flags
fullFileName
public static java.lang.String getParent(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 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 2: iload 1
ifle 3
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
3: StackMap locals: int
StackMap stack:
iload 1
ifne 4
ldc "/"
areturn
4: StackMap locals:
StackMap stack:
ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 name Ljava/lang/String;
2 5 1 lastSlash I
MethodParameters:
Name Flags
name
public static java.lang.String getPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 1
ldc "/"
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokestatic org.stringtemplate.v4.misc.Misc.getParent:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 2: aload 1
astore 2
start local 2 3: aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 4
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
4: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 name Ljava/lang/String;
2 5 1 parent Ljava/lang/String;
3 5 2 prefix Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String replaceEscapes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "\n"
ldc "\\\\n"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
1: aload 0
ldc "\r"
ldc "\\\\r"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
2: aload 0
ldc "\t"
ldc "\\\\t"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
3: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String replaceEscapedRightAngle(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 19
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: iload 3
bipush 60
if_icmpne 8
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc "<\\\\>"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
5: aload 1
ldc "<\\\\>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: iload 2
ldc "<\\\\>"
invokevirtual java.lang.String.length:()I
iadd
istore 2
7: goto 19
8: StackMap locals: int
StackMap stack:
iload 3
bipush 62
if_icmpne 12
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc ">\\>"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
9: aload 1
ldc ">>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: iload 2
ldc ">\\>"
invokevirtual java.lang.String.length:()I
iadd
istore 2
11: goto 19
12: StackMap locals:
StackMap stack:
iload 3
bipush 92
if_icmpne 17
aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc "\\>>"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
13: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
ldc "\\>>>"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 17
14: aload 1
ldc ">>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: iload 2
ldc "\\>>"
invokevirtual java.lang.String.length:()I
iadd
istore 2
16: goto 19
17: StackMap locals:
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
18: iinc 2 1
end local 3 19: StackMap locals:
StackMap stack:
iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 3
20: aload 1
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 21 0 s Ljava/lang/String;
1 21 1 buf Ljava/lang/StringBuilder;
2 21 2 i I
4 19 3 c C
MethodParameters:
Name Flags
s
public static boolean urlExists(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 1
start local 1 1: aload 1
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
astore 2
start local 2 2: aload 2
invokevirtual java.io.InputStream.close:()V
3: goto 5
StackMap locals: java.net.URL java.net.URLConnection java.io.InputStream
StackMap stack: java.lang.Throwable
4: pop
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 6: StackMap locals: java.net.URL
StackMap stack: java.io.IOException
pop
7: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 url Ljava/net/URL;
1 6 1 con Ljava/net/URLConnection;
2 6 2 is Ljava/io/InputStream;
Exception table:
from to target type
2 3 4 Class java.lang.Throwable
0 5 6 Class java.io.IOException
MethodParameters:
Name Flags
url
public static org.stringtemplate.v4.misc.Coordinate getLineCharPosition(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/stringtemplate/v4/misc/Coordinate;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 7
4: StackMap locals: int int int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
bipush 10
if_icmpne 5
iinc 2 1
iconst_0
istore 3
goto 6
5: StackMap locals:
StackMap stack:
iinc 3 1
6: StackMap locals:
StackMap stack:
iinc 4 1
7: StackMap locals:
StackMap stack:
iload 4
iload 1
if_icmplt 4
8: new org.stringtemplate.v4.misc.Coordinate
dup
iload 2
iload 3
invokespecial org.stringtemplate.v4.misc.Coordinate.<init>:(II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 s Ljava/lang/String;
0 9 1 index I
1 9 2 line I
2 9 3 charPos I
3 9 4 p I
MethodParameters:
Name Flags
s
index
}
SourceFile: "Misc.java"