public final class com.google.common.net.HostSpecifier
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.net.HostSpecifier
super_class: java.lang.Object
{
private final java.lang.String canonicalForm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.google.common.net.HostSpecifier.canonicalForm:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/net/HostSpecifier;
0 3 1 canonicalForm Ljava/lang/String;
MethodParameters:
Name Flags
canonicalForm
public static com.google.common.net.HostSpecifier fromValid(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/google/common/net/HostSpecifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.net.HostAndPort.fromString:(Ljava/lang/String;)Lcom/google/common/net/HostAndPort;
astore 1
start local 1 1: aload 1
invokevirtual com.google.common.net.HostAndPort.hasPort:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: com.google.common.net.HostAndPort
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: invokestatic com.google.common.base.Preconditions.checkArgument:(Z)V
4: aload 1
invokevirtual com.google.common.net.HostAndPort.getHost:()Ljava/lang/String;
astore 2
start local 2 5: aconst_null
astore 3
start local 3 6: aload 2
invokestatic com.google.common.net.InetAddresses.forString:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 3
7: goto 9
StackMap locals: java.lang.String com.google.common.net.HostAndPort java.lang.String java.net.InetAddress
StackMap stack: java.lang.IllegalArgumentException
8: pop
9: StackMap locals:
StackMap stack:
aload 3
ifnull 11
10: new com.google.common.net.HostSpecifier
dup
aload 3
invokestatic com.google.common.net.InetAddresses.toUriString:(Ljava/net/InetAddress;)Ljava/lang/String;
invokespecial com.google.common.net.HostSpecifier.<init>:(Ljava/lang/String;)V
areturn
11: StackMap locals:
StackMap stack:
aload 2
invokestatic com.google.common.net.InternetDomainName.from:(Ljava/lang/String;)Lcom/google/common/net/InternetDomainName;
astore 4
start local 4 12: aload 4
invokevirtual com.google.common.net.InternetDomainName.hasPublicSuffix:()Z
ifeq 14
13: new com.google.common.net.HostSpecifier
dup
aload 4
invokevirtual com.google.common.net.InternetDomainName.toString:()Ljava/lang/String;
invokespecial com.google.common.net.HostSpecifier.<init>:(Ljava/lang/String;)V
areturn
14: StackMap locals: com.google.common.net.InternetDomainName
StackMap stack:
new java.lang.IllegalArgumentException
dup
15: new java.lang.StringBuilder
dup
ldc "Domain name does not have a recognized public suffix: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 specifier Ljava/lang/String;
1 17 1 parsedHost Lcom/google/common/net/HostAndPort;
5 17 2 host Ljava/lang/String;
6 17 3 addr Ljava/net/InetAddress;
12 17 4 domain Lcom/google/common/net/InternetDomainName;
Exception table:
from to target type
6 7 8 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
specifier
public static com.google.common.net.HostSpecifier from(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/google/common/net/HostSpecifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.net.HostSpecifier.fromValid:(Ljava/lang/String;)Lcom/google/common/net/HostSpecifier;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 1
start local 1 3: new java.text.ParseException
dup
new java.lang.StringBuilder
dup
ldc "Invalid host specifier: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
astore 2
start local 2 4: aload 2
aload 1
invokevirtual java.text.ParseException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
5: aload 2
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 specifier Ljava/lang/String;
3 6 1 e Ljava/lang/IllegalArgumentException;
4 6 2 parseException Ljava/text/ParseException;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
specifier
public static boolean isValid(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.net.HostSpecifier.fromValid:(Ljava/lang/String;)Lcom/google/common/net/HostSpecifier;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 specifier Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
specifier
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.google.common.net.HostSpecifier
ifeq 5
3: aload 1
checkcast com.google.common.net.HostSpecifier
astore 2
start local 2 4: aload 0
getfield com.google.common.net.HostSpecifier.canonicalForm:Ljava/lang/String;
aload 2
getfield com.google.common.net.HostSpecifier.canonicalForm:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/net/HostSpecifier;
0 6 1 other Ljava/lang/Object;
4 5 2 that Lcom/google/common/net/HostSpecifier;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.net.HostSpecifier.canonicalForm:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/net/HostSpecifier;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.net.HostSpecifier.canonicalForm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/net/HostSpecifier;
}
SourceFile: "HostSpecifier.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()