public class sun.net.URLCanonicalizer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.URLCanonicalizer
super_class: java.lang.Object
{
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 Lsun/net/URLCanonicalizer;
public java.lang.String canonicalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: aload 1
ldc "ftp."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: new java.lang.StringBuilder
dup
ldc "ftp://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
3: goto 14
StackMap locals: java.lang.String
StackMap stack:
4: aload 1
ldc "gopher."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
5: new java.lang.StringBuilder
dup
ldc "gopher://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
6: goto 14
StackMap locals:
StackMap stack:
7: aload 1
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
8: new java.lang.StringBuilder
dup
ldc "file:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
9: goto 14
StackMap locals:
StackMap stack:
10: aload 0
aload 1
invokevirtual sun.net.URLCanonicalizer.hasProtocolName:(Ljava/lang/String;)Z
ifne 14
11: aload 0
aload 1
invokevirtual sun.net.URLCanonicalizer.isSimpleHostName:(Ljava/lang/String;)Z
ifeq 13
12: new java.lang.StringBuilder
dup
ldc "www."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".com"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
13: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "http://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/net/URLCanonicalizer;
0 15 1 simpleURL Ljava/lang/String;
1 15 2 resultURL Ljava/lang/String;
MethodParameters:
Name Flags
simpleURL
public boolean hasProtocolName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: iload 2
ifgt 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
iconst_0
istore 3
start local 3 4: goto 12
5: StackMap locals: int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 6: iload 4
bipush 65
if_icmplt 7
iload 4
bipush 90
if_icmple 11
7: StackMap locals: int
StackMap stack:
iload 4
bipush 97
if_icmplt 8
iload 4
bipush 122
if_icmple 11
8: StackMap locals:
StackMap stack:
iload 4
bipush 45
if_icmpne 10
9: goto 11
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 2
if_icmplt 5
end local 3 13: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/net/URLCanonicalizer;
0 14 1 url Ljava/lang/String;
1 14 2 index I
4 13 3 i I
6 11 4 c C
MethodParameters:
Name Flags
url
protected boolean isSimpleHostName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 10
2: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 3: iload 3
bipush 65
if_icmplt 4
iload 3
bipush 90
if_icmple 9
4: StackMap locals: int
StackMap stack:
iload 3
bipush 97
if_icmplt 5
iload 3
bipush 122
if_icmple 9
5: StackMap locals:
StackMap stack:
iload 3
bipush 48
if_icmplt 6
iload 3
bipush 57
if_icmple 9
6: StackMap locals:
StackMap stack:
iload 3
bipush 45
if_icmpne 8
7: goto 9
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 2
end local 2 11: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/URLCanonicalizer;
0 12 1 url Ljava/lang/String;
1 11 2 i I
3 9 3 c C
MethodParameters:
Name Flags
url
}
SourceFile: "URLCanonicalizer.java"