public class org.apache.cassandra.cql3.statements.PropertyDefinitions
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.PropertyDefinitions
super_class: java.lang.Object
{
private static final java.util.regex.Pattern PATTERN_POSITIVE;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final java.util.Map<java.lang.String, java.lang.Object> properties;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "(1|true|yes)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.apache.cassandra.cql3.statements.PropertyDefinitions.PATTERN_POSITIVE:Ljava/util/regex/Pattern;
1: ldc Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.cql3.statements.PropertyDefinitions.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
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.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
public void addProperty(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 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
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:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
name
value
public void addProperty(java.lang.String, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)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.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 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
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:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
name
value
public void validate(java.util.Set<java.lang.String>, java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;Ljava/util/Set;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.apache.cassandra.cql3.statements.PropertyDefinitions java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 1
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 4
3: goto 7
4: StackMap locals: org.apache.cassandra.cql3.statements.PropertyDefinitions java.util.Set java.util.Set java.lang.String java.util.Iterator
StackMap stack:
aload 2
aload 3
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
5: getstatic org.apache.cassandra.cql3.statements.PropertyDefinitions.logger:Lorg/slf4j/Logger;
ldc "Ignoring obsolete property {}"
aload 3
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
goto 7
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Unknown property '%s'"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
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
end local 3 7: StackMap locals: org.apache.cassandra.cql3.statements.PropertyDefinitions java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 9 1 keywords Ljava/util/Set<Ljava/lang/String;>;
0 9 2 obsolete Ljava/util/Set<Ljava/lang/String;>;
2 7 3 name Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
Signature: (Ljava/util/Set<Ljava/lang/String;>;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
keywords
obsolete
protected java.lang.String getSimple(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 2
instanceof java.lang.String
ifne 5
4: new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Invalid value for property '%s'. It should be a string"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
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
5: StackMap locals:
StackMap stack:
aload 2
checkcast java.lang.String
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 6 1 name Ljava/lang/String;
1 6 2 val Ljava/lang/Object;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
name
protected java.util.Map<java.lang.String, java.lang.String> getMap(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 2
instanceof java.util.Map
ifne 5
4: new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Invalid value for property '%s'. It should be a map."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
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
5: StackMap locals:
StackMap stack:
aload 2
checkcast java.util.Map
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 6 1 name Ljava/lang/String;
1 6 2 val Ljava/lang/Object;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
Signature: (Ljava/lang/String;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
name
public java.lang.Boolean hasProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.statements.PropertyDefinitions.properties:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getString(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.statements.PropertyDefinitions.getSimple:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 2
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 4 1 key Ljava/lang/String;
0 4 2 defaultValue Ljava/lang/String;
1 4 3 value Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
key
defaultValue
public java.lang.Boolean getBoolean(java.lang.String, java.lang.Boolean);
descriptor: (Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.statements.PropertyDefinitions.getSimple:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnonnull 2
aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: getstatic org.apache.cassandra.cql3.statements.PropertyDefinitions.PATTERN_POSITIVE:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
StackMap locals:
StackMap stack: int
3: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 4 1 key Ljava/lang/String;
0 4 2 defaultValue Ljava/lang/Boolean;
1 4 3 value Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
key
defaultValue
public double getDouble(java.lang.String, double);
descriptor: (Ljava/lang/String;D)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.statements.PropertyDefinitions.getSimple:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: aload 4
ifnonnull 3
2: dload 2
dreturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
4: dreturn
5: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
6: new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Invalid double value %s for '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
dup
iconst_1
aload 1
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
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 7 1 key Ljava/lang/String;
0 7 2 defaultValue D
1 7 4 value Ljava/lang/String;
Exception table:
from to target type
3 4 5 Class java.lang.NumberFormatException
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
key
defaultValue
public java.lang.Integer getInt(java.lang.String, java.lang.Integer);
descriptor: (Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.cql3.statements.PropertyDefinitions.getSimple:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 1
aload 3
aload 2
invokestatic org.apache.cassandra.cql3.statements.PropertyDefinitions.toInt:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/PropertyDefinitions;
0 2 1 key Ljava/lang/String;
0 2 2 defaultValue Ljava/lang/Integer;
1 2 3 value Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
key
defaultValue
public static java.lang.Integer toInt(java.lang.String, java.lang.String, java.lang.Integer);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: aload 2
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
3: areturn
4: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
5: new org.apache.cassandra.exceptions.SyntaxException
dup
ldc "Invalid integer value %s for '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 key Ljava/lang/String;
0 6 1 value Ljava/lang/String;
0 6 2 defaultValue Ljava/lang/Integer;
Exception table:
from to target type
2 3 4 Class java.lang.NumberFormatException
Exceptions:
throws org.apache.cassandra.exceptions.SyntaxException
MethodParameters:
Name Flags
key
value
defaultValue
}
SourceFile: "PropertyDefinitions.java"