class sun.nio.ch.MembershipKeyImpl extends java.nio.channels.MembershipKey
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.MembershipKeyImpl
super_class: java.nio.channels.MembershipKey
{
private final java.nio.channels.MulticastChannel ch;
descriptor: Ljava/nio/channels/MulticastChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.InetAddress group;
descriptor: Ljava/net/InetAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.NetworkInterface interf;
descriptor: Ljava/net/NetworkInterface;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.InetAddress source;
descriptor: Ljava/net/InetAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean invalid;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.lang.Object stateLock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private java.util.HashSet<java.net.InetAddress> blockedSet;
descriptor: Ljava/util/HashSet;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashSet<Ljava/net/InetAddress;>;
private void <init>(java.nio.channels.MulticastChannel, java.net.InetAddress, java.net.NetworkInterface, java.net.InetAddress);
descriptor: (Ljava/nio/channels/MulticastChannel;Ljava/net/InetAddress;Ljava/net/NetworkInterface;Ljava/net/InetAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.nio.channels.MembershipKey.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.MembershipKeyImpl.stateLock:Ljava/lang/Object;
2: aload 0
aload 1
putfield sun.nio.ch.MembershipKeyImpl.ch:Ljava/nio/channels/MulticastChannel;
3: aload 0
aload 2
putfield sun.nio.ch.MembershipKeyImpl.group:Ljava/net/InetAddress;
4: aload 0
aload 3
putfield sun.nio.ch.MembershipKeyImpl.interf:Ljava/net/NetworkInterface;
5: aload 0
aload 4
putfield sun.nio.ch.MembershipKeyImpl.source:Ljava/net/InetAddress;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/MembershipKeyImpl;
0 7 1 ch Ljava/nio/channels/MulticastChannel;
0 7 2 group Ljava/net/InetAddress;
0 7 3 interf Ljava/net/NetworkInterface;
0 7 4 source Ljava/net/InetAddress;
MethodParameters:
Name Flags
ch
group
interf
source
public boolean isValid();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.invalid:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/MembershipKeyImpl;
void invalidate();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield sun.nio.ch.MembershipKeyImpl.invalid:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/MembershipKeyImpl;
public void drop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.ch:Ljava/nio/channels/MulticastChannel;
checkcast sun.nio.ch.DatagramChannelImpl
aload 0
invokevirtual sun.nio.ch.DatagramChannelImpl.drop:(Lsun/nio/ch/MembershipKeyImpl;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/MembershipKeyImpl;
public java.nio.channels.MulticastChannel channel();
descriptor: ()Ljava/nio/channels/MulticastChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.ch:Ljava/nio/channels/MulticastChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/MembershipKeyImpl;
public java.net.InetAddress group();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.group:Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/MembershipKeyImpl;
public java.net.NetworkInterface networkInterface();
descriptor: ()Ljava/net/NetworkInterface;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.interf:Ljava/net/NetworkInterface;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/MembershipKeyImpl;
public java.net.InetAddress sourceAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.source:Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/MembershipKeyImpl;
public java.nio.channels.MembershipKey block(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/nio/channels/MembershipKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.source:Ljava/net/InetAddress;
ifnull 2
1: new java.lang.IllegalStateException
dup
ldc "key is source-specific"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.MembershipKeyImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
ifnull 6
aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.contains:(Ljava/lang/Object;)Z
ifeq 6
4: aload 0
aload 2
monitorexit
5: areturn
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.MembershipKeyImpl.ch:Ljava/nio/channels/MulticastChannel;
checkcast sun.nio.ch.DatagramChannelImpl
aload 0
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.block:(Lsun/nio/ch/MembershipKeyImpl;Ljava/net/InetAddress;)V
7: aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
ifnonnull 9
8: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
10: aload 2
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 2
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/MembershipKeyImpl;
0 15 1 toBlock Ljava/net/InetAddress;
Exception table:
from to target type
3 5 12 any
6 11 12 any
12 13 12 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
toBlock
public java.nio.channels.MembershipKey unblock(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/nio/channels/MembershipKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.MembershipKeyImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
ifnull 2
aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.contains:(Ljava/lang/Object;)Z
ifne 3
2: StackMap locals: java.lang.Object
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "not blocked"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.MembershipKeyImpl.ch:Ljava/nio/channels/MulticastChannel;
checkcast sun.nio.ch.DatagramChannelImpl
aload 0
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.unblock:(Lsun/nio/ch/MembershipKeyImpl;Ljava/net/InetAddress;)V
4: aload 0
getfield sun.nio.ch.MembershipKeyImpl.blockedSet:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
pop
5: aload 2
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/MembershipKeyImpl;
0 10 1 toUnblock Ljava/net/InetAddress;
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
toUnblock
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
bipush 64
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 1: aload 1
bipush 60
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 1
aload 0
getfield sun.nio.ch.MembershipKeyImpl.group:Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 1
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
4: aload 1
aload 0
getfield sun.nio.ch.MembershipKeyImpl.interf:Ljava/net/NetworkInterface;
invokevirtual java.net.NetworkInterface.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 0
getfield sun.nio.ch.MembershipKeyImpl.source:Ljava/net/InetAddress;
ifnull 8
6: aload 1
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: aload 1
aload 0
getfield sun.nio.ch.MembershipKeyImpl.source:Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
bipush 62
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/MembershipKeyImpl;
1 10 1 sb Ljava/lang/StringBuilder;
}
SourceFile: "MembershipKeyImpl.java"
NestMembers:
sun.nio.ch.MembershipKeyImpl$Type4 sun.nio.ch.MembershipKeyImpl$Type6
InnerClasses:
Type4 = sun.nio.ch.MembershipKeyImpl$Type4 of sun.nio.ch.MembershipKeyImpl
Type6 = sun.nio.ch.MembershipKeyImpl$Type6 of sun.nio.ch.MembershipKeyImpl