public class org.apache.cassandra.cql3.Sets$Literal extends org.apache.cassandra.cql3.Term$Raw
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.Sets$Literal
super_class: org.apache.cassandra.cql3.Term$Raw
{
private final java.util.List<org.apache.cassandra.cql3.Term$Raw> elements;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;
public void <init>(java.util.List<org.apache.cassandra.cql3.Term$Raw>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.apache.cassandra.cql3.Term$Raw.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
0 3 1 elements Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;
Signature: (Ljava/util/List<Lorg/apache/cassandra/cql3/Term$Raw;>;)V
MethodParameters:
Name Flags
elements
public org.apache.cassandra.cql3.Term prepare(java.lang.String, org.apache.cassandra.cql3.ColumnSpecification);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/Term;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.cql3.Sets$Literal.validateAssignableTo:(Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)V
1: aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
instanceof org.apache.cassandra.db.marshal.MapType
ifeq 3
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: new org.apache.cassandra.cql3.Maps$Value
dup
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokespecial org.apache.cassandra.cql3.Maps$Value.<init>:(Ljava/util/Map;)V
areturn
3: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.cassandra.cql3.Sets.valueSpecOf:(Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/ColumnSpecification;
astore 3
start local 3 4: new java.util.HashSet
dup
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokespecial java.util.HashSet.<init>:(I)V
astore 4
start local 4 5: iconst_1
istore 5
start local 5 6: aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 14
StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String org.apache.cassandra.cql3.ColumnSpecification org.apache.cassandra.cql3.ColumnSpecification java.util.Set int top java.util.Iterator
StackMap stack:
7: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.Term$Raw
astore 6
start local 6 8: aload 6
aload 1
aload 3
invokevirtual org.apache.cassandra.cql3.Term$Raw.prepare:(Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/Term;
astore 8
start local 8 9: aload 8
invokeinterface org.apache.cassandra.cql3.Term.containsBindMarker:()Z
ifeq 11
10: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid set literal for %s: bind variables are not supported inside collection literals"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aastore
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
11: StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String org.apache.cassandra.cql3.ColumnSpecification org.apache.cassandra.cql3.ColumnSpecification java.util.Set int org.apache.cassandra.cql3.Term$Raw java.util.Iterator org.apache.cassandra.cql3.Term
StackMap stack:
aload 8
instanceof org.apache.cassandra.cql3.Term$NonTerminal
ifeq 13
12: iconst_0
istore 5
13: StackMap locals:
StackMap stack:
aload 4
aload 8
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 6 14: StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String org.apache.cassandra.cql3.ColumnSpecification org.apache.cassandra.cql3.ColumnSpecification java.util.Set int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
15: new org.apache.cassandra.cql3.Sets$DelayedValue
dup
aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
checkcast org.apache.cassandra.db.marshal.SetType
invokevirtual org.apache.cassandra.db.marshal.SetType.getElementsType:()Lorg/apache/cassandra/db/marshal/AbstractType;
aload 4
invokespecial org.apache.cassandra.cql3.Sets$DelayedValue.<init>:(Ljava/util/Comparator;Ljava/util/Set;)V
astore 6
start local 6 16: iload 5
ifeq 17
aload 6
getstatic org.apache.cassandra.cql3.QueryOptions.DEFAULT:Lorg/apache/cassandra/cql3/QueryOptions;
invokevirtual org.apache.cassandra.cql3.Sets$DelayedValue.bind:(Lorg/apache/cassandra/cql3/QueryOptions;)Lorg/apache/cassandra/cql3/Term$Terminal;
goto 18
StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String org.apache.cassandra.cql3.ColumnSpecification org.apache.cassandra.cql3.ColumnSpecification java.util.Set int org.apache.cassandra.cql3.Sets$DelayedValue
StackMap stack:
17: aload 6
StackMap locals:
StackMap stack: org.apache.cassandra.cql3.Term
18: areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
0 19 1 keyspace Ljava/lang/String;
0 19 2 receiver Lorg/apache/cassandra/cql3/ColumnSpecification;
4 19 3 valueSpec Lorg/apache/cassandra/cql3/ColumnSpecification;
5 19 4 values Ljava/util/Set<Lorg/apache/cassandra/cql3/Term;>;
6 19 5 allTerminal Z
8 14 6 rt Lorg/apache/cassandra/cql3/Term$Raw;
9 14 8 t Lorg/apache/cassandra/cql3/Term;
16 19 6 value Lorg/apache/cassandra/cql3/Sets$DelayedValue;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspace
receiver
private void validateAssignableTo(java.lang.String, org.apache.cassandra.cql3.ColumnSpecification);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
instanceof org.apache.cassandra.db.marshal.SetType
ifne 4
1: aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
instanceof org.apache.cassandra.db.marshal.MapType
ifeq 3
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: return
3: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid set literal for %s of type %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aastore
dup
iconst_1
aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.asCQL3Type:()Lorg/apache/cassandra/cql3/CQL3Type;
aastore
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
4: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.cassandra.cql3.Sets.valueSpecOf:(Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/ColumnSpecification;
astore 3
start local 3 5: aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String org.apache.cassandra.cql3.ColumnSpecification org.apache.cassandra.cql3.ColumnSpecification top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.Term$Raw
astore 4
start local 4 7: aload 4
aload 1
aload 3
invokevirtual org.apache.cassandra.cql3.Term$Raw.testAssignment:(Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
invokevirtual org.apache.cassandra.cql3.AssignmentTestable$TestResult.isAssignable:()Z
ifne 9
8: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Invalid set literal for %s: value %s is not of type %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
aastore
dup
iconst_1
aload 4
aastore
dup
iconst_2
aload 3
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
invokevirtual org.apache.cassandra.db.marshal.AbstractType.asCQL3Type:()Lorg/apache/cassandra/cql3/CQL3Type;
aastore
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 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
0 11 1 keyspace Ljava/lang/String;
0 11 2 receiver Lorg/apache/cassandra/cql3/ColumnSpecification;
5 11 3 valueSpec Lorg/apache/cassandra/cql3/ColumnSpecification;
7 9 4 rt Lorg/apache/cassandra/cql3/Term$Raw;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
keyspace
receiver
public org.apache.cassandra.cql3.AssignmentTestable$TestResult testAssignment(java.lang.String, org.apache.cassandra.cql3.ColumnSpecification);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
instanceof org.apache.cassandra.db.marshal.SetType
ifne 4
1: aload 2
getfield org.apache.cassandra.cql3.ColumnSpecification.type:Lorg/apache/cassandra/db/marshal/AbstractType;
instanceof org.apache.cassandra.db.marshal.MapType
ifeq 3
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: getstatic org.apache.cassandra.cql3.AssignmentTestable$TestResult.WEAKLY_ASSIGNABLE:Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.cql3.AssignmentTestable$TestResult.NOT_ASSIGNABLE:Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 6
5: getstatic org.apache.cassandra.cql3.AssignmentTestable$TestResult.WEAKLY_ASSIGNABLE:Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
areturn
6: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.cassandra.cql3.Sets.valueSpecOf:(Lorg/apache/cassandra/cql3/ColumnSpecification;)Lorg/apache/cassandra/cql3/ColumnSpecification;
astore 3
start local 3 7: aload 1
aload 3
aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokestatic org.apache.cassandra.cql3.AssignmentTestable$TestResult.testAll:(Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnSpecification;Ljava/util/Collection;)Lorg/apache/cassandra/cql3/AssignmentTestable$TestResult;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
0 8 1 keyspace Ljava/lang/String;
0 8 2 receiver Lorg/apache/cassandra/cql3/ColumnSpecification;
7 8 3 valueSpec Lorg/apache/cassandra/cql3/ColumnSpecification;
MethodParameters:
Name Flags
keyspace
receiver
public org.apache.cassandra.db.marshal.AbstractType<?> getExactTypeIfKnown(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.cql3.Sets$Literal java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.Term$Raw
astore 2
start local 2 2: aload 2
aload 1
invokevirtual org.apache.cassandra.cql3.Term$Raw.getExactTypeIfKnown:(Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType;
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 4
iconst_0
invokestatic org.apache.cassandra.db.marshal.SetType.getInstance:(Lorg/apache/cassandra/db/marshal/AbstractType;Z)Lorg/apache/cassandra/db/marshal/SetType;
areturn
end local 4 end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
0 7 1 keyspace Ljava/lang/String;
2 5 2 term Lorg/apache/cassandra/cql3/Term$Raw;
3 5 4 type Lorg/apache/cassandra/db/marshal/AbstractType<*>;
Signature: (Ljava/lang/String;)Lorg/apache/cassandra/db/marshal/AbstractType<*>;
MethodParameters:
Name Flags
keyspace
public java.lang.String getText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cql3.Sets$Literal.elements:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/cql3/Term$Raw.getText()Ljava/lang/String; (5)
(Lorg/apache/cassandra/cql3/Term$Raw;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
ldc ", "
ldc "{"
ldc "}"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/Sets$Literal;
}
SourceFile: "Sets.java"
NestHost: org.apache.cassandra.cql3.Sets
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final TestResult = org.apache.cassandra.cql3.AssignmentTestable$TestResult of org.apache.cassandra.cql3.AssignmentTestable
public Value = org.apache.cassandra.cql3.Maps$Value of org.apache.cassandra.cql3.Maps
public DelayedValue = org.apache.cassandra.cql3.Sets$DelayedValue of org.apache.cassandra.cql3.Sets
public Literal = org.apache.cassandra.cql3.Sets$Literal of org.apache.cassandra.cql3.Sets
public abstract NonTerminal = org.apache.cassandra.cql3.Term$NonTerminal of org.apache.cassandra.cql3.Term
public abstract Raw = org.apache.cassandra.cql3.Term$Raw of org.apache.cassandra.cql3.Term
public abstract Terminal = org.apache.cassandra.cql3.Term$Terminal of org.apache.cassandra.cql3.Term