public class org.apache.cassandra.auth.RoleOptions
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.auth.RoleOptions
super_class: java.lang.Object
{
private final java.util.Map<org.apache.cassandra.auth.IRoleManager$Option, java.lang.Object> options;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/apache/cassandra/auth/IRoleManager$Option;Ljava/lang/Object;>;
private static volatile int[] $SWITCH_TABLE$org$apache$cassandra$auth$IRoleManager$Option;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/auth/RoleOptions;
public void setOption(org.apache.cassandra.auth.IRoleManager$Option, java.lang.Object);
descriptor: (Lorg/apache/cassandra/auth/IRoleManager$Option;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Multiple definition for property '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.name:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.SyntaxException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/auth/RoleOptions;
0 4 1 option Lorg/apache/cassandra/auth/IRoleManager$Option;
0 4 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
option
value
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
public java.util.Map<org.apache.cassandra.auth.IRoleManager$Option, java.lang.Object> getOptions();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
Signature: ()Ljava/util/Map<Lorg/apache/cassandra/auth/IRoleManager$Option;Ljava/lang/Object;>;
public com.google.common.base.Optional<java.lang.Boolean> getSuperuser();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
getstatic org.apache.cassandra.auth.IRoleManager$Option.SUPERUSER:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokestatic com.google.common.base.Optional.fromNullable:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
Signature: ()Lcom/google/common/base/Optional<Ljava/lang/Boolean;>;
public com.google.common.base.Optional<java.lang.Boolean> getLogin();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
getstatic org.apache.cassandra.auth.IRoleManager$Option.LOGIN:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokestatic com.google.common.base.Optional.fromNullable:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
Signature: ()Lcom/google/common/base/Optional<Ljava/lang/Boolean;>;
public com.google.common.base.Optional<java.lang.String> getPassword();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
getstatic org.apache.cassandra.auth.IRoleManager$Option.PASSWORD:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic com.google.common.base.Optional.fromNullable:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
Signature: ()Lcom/google/common/base/Optional<Ljava/lang/String;>;
public com.google.common.base.Optional<java.util.Map<java.lang.String, java.lang.String>> getCustomOptions();
descriptor: ()Lcom/google/common/base/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
getstatic org.apache.cassandra.auth.IRoleManager$Option.OPTIONS:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
invokestatic com.google.common.base.Optional.fromNullable:(Ljava/lang/Object;)Lcom/google/common/base/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
Signature: ()Lcom/google/common/base/Optional<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
public void validate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 20
StackMap locals: org.apache.cassandra.auth.RoleOptions top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 2: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
invokeinterface org.apache.cassandra.auth.IRoleManager.supportedOptions:()Ljava/util/Set;
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 7
3: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "%s doesn't support %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
4: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
5: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: org.apache.cassandra.auth.RoleOptions java.util.Map$Entry java.util.Iterator
StackMap stack:
invokestatic org.apache.cassandra.auth.RoleOptions.$SWITCH_TABLE$org$apache$cassandra$auth$IRoleManager$Option:()[I
aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.auth.IRoleManager$Option
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 8
2: 12
3: 8
4: 16
default: 20
}
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
instanceof java.lang.Boolean
ifne 20
9: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid value for property '%s'. It must be a boolean"
iconst_1
anewarray java.lang.Object
dup
iconst_0
10: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
11: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
instanceof java.lang.String
ifne 20
13: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid value for property '%s'. It must be a string"
iconst_1
anewarray java.lang.Object
dup
iconst_0
14: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
instanceof java.util.Map
ifne 20
17: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid value for property '%s'. It must be a map"
iconst_1
anewarray java.lang.Object
dup
iconst_0
18: aload 1
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
19: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 1 20: StackMap locals: org.apache.cassandra.auth.RoleOptions top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
21: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/apache/cassandra/auth/RoleOptions;
2 20 1 option Ljava/util/Map$Entry<Lorg/apache/cassandra/auth/IRoleManager$Option;Ljava/lang/Object;>;
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 org.apache.cassandra.auth.RoleOptions.options:Ljava/util/Map;
invokestatic org.apache.cassandra.utils.FBUtilities.toString:(Ljava/util/Map;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/RoleOptions;
static int[] $SWITCH_TABLE$org$apache$cassandra$auth$IRoleManager$Option();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.apache.cassandra.auth.RoleOptions.$SWITCH_TABLE$org$apache$cassandra$auth$IRoleManager$Option:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.apache.cassandra.auth.IRoleManager$Option.values:()[Lorg/apache/cassandra/auth/IRoleManager$Option;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.apache.cassandra.auth.IRoleManager$Option.LOGIN:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.apache.cassandra.auth.IRoleManager$Option.OPTIONS:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.ordinal:()I
iconst_4
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.apache.cassandra.auth.IRoleManager$Option.PASSWORD:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.apache.cassandra.auth.IRoleManager$Option.SUPERUSER:Lorg/apache/cassandra/auth/IRoleManager$Option;
invokevirtual org.apache.cassandra.auth.IRoleManager$Option.ordinal:()I
iconst_1
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic org.apache.cassandra.auth.RoleOptions.$SWITCH_TABLE$org$apache$cassandra$auth$IRoleManager$Option:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
}
SourceFile: "RoleOptions.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final Option = org.apache.cassandra.auth.IRoleManager$Option of org.apache.cassandra.auth.IRoleManager