class io.vertx.ext.auth.authorization.impl.VariableAwareExpression
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.ext.auth.authorization.impl.VariableAwareExpression
super_class: java.lang.Object
{
private java.lang.String value;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private transient java.util.function.Function<io.vertx.ext.auth.authorization.AuthorizationContext, java.lang.String>[] parts;
descriptor: [Ljava/util/function/Function;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
Signature: [Ljava/util/function/Function<Lio/vertx/ext/auth/authorization/AuthorizationContext;Ljava/lang/String;>;
private transient boolean hasVariable;
descriptor: Z
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.hasVariable:Z
2: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.String.trim:()Ljava/lang/String;
putfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.value:Ljava/lang/String;
3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 25
6: StackMap locals: io.vertx.ext.auth.authorization.impl.VariableAwareExpression java.lang.String java.util.List int
StackMap stack:
aload 1
ldc "{"
iload 3
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
istore 4
start local 4 7: iload 4
iconst_m1
if_icmpne 12
8: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmpge 26
9: aload 1
iload 3
aload 1
invokevirtual java.lang.String.length:()I
iload 3
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 10: aload 2
aload 5
invokedynamic apply(Ljava/lang/String;)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;
io/vertx/ext/auth/authorization/impl/VariableAwareExpression.lambda$0(Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String; (6)
(Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 11: goto 26
12: StackMap locals: int
StackMap stack:
iload 4
iload 3
if_icmple 15
13: aload 1
iload 3
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 14: aload 2
aload 5
invokedynamic apply(Ljava/lang/String;)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;
io/vertx/ext/auth/authorization/impl/VariableAwareExpression.lambda$1(Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String; (6)
(Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 15: StackMap locals:
StackMap stack:
aload 1
ldc "}"
iload 3
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
istore 5
start local 5 16: iload 5
iconst_m1
if_icmpne 18
17: new java.lang.IllegalArgumentException
dup
ldc "opening '{' without corresponding closing '}'"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: int
StackMap stack:
iload 5
iload 4
isub
iconst_1
if_icmpne 20
19: new java.lang.IllegalArgumentException
dup
ldc "empty '{}' is not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 1
iload 4
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 21: aload 1
iload 4
iconst_1
iadd
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 22: aload 0
iconst_1
putfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.hasVariable:Z
23: aload 2
aload 7
aload 6
invokedynamic apply(Ljava/lang/String;Ljava/lang/String;)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;
io/vertx/ext/auth/authorization/impl/VariableAwareExpression.lambda$2(Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String; (6)
(Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
24: iload 5
iconst_1
iadd
istore 3
end local 7 end local 6 end local 5 end local 4 25: StackMap locals:
StackMap stack:
iload 3
iconst_m1
if_icmpne 6
26: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/util/function/Function;
aload 2
invokeinterface java.util.List.size:()I
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
checkcast java.util.function.Function[]
putfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
27: iconst_0
istore 4
start local 4 28: goto 31
29: StackMap locals: int
StackMap stack:
aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
iload 4
aload 2
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.util.function.Function
aastore
30: iinc 4 1
StackMap locals:
StackMap stack:
31: iload 4
aload 2
invokeinterface java.util.List.size:()I
if_icmplt 29
end local 4 32: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
0 33 1 value Ljava/lang/String;
4 33 2 tmpParts Ljava/util/List<Ljava/util/function/Function<Lio/vertx/ext/auth/authorization/AuthorizationContext;Ljava/lang/String;>;>;
5 33 3 currentPos I
7 25 4 openingCurlyBracePos I
10 11 5 authorizationPart Ljava/lang/String;
14 15 5 authorizationPart Ljava/lang/String;
16 25 5 closingCurlyBracePos I
21 25 6 part Ljava/lang/String;
22 25 7 variableName Ljava/lang/String;
28 32 4 i I
MethodParameters:
Name Flags
value
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
ifnonnull 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof io.vertx.ext.auth.authorization.impl.VariableAwareExpression
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 1
checkcast io.vertx.ext.auth.authorization.impl.VariableAwareExpression
astore 2
start local 2 7: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.value:Ljava/lang/String;
aload 2
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.value:Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
0 8 1 obj Ljava/lang/Object;
7 8 2 other Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
MethodParameters:
Name Flags
obj
public boolean hasVariable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.hasVariable:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
public java.lang.String getValue();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.value:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.value:Ljava/lang/String;
aastore
invokestatic java.util.Objects.hash:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
public java.util.function.Function<io.vertx.ext.auth.authorization.AuthorizationContext, java.lang.String>[] parts();
descriptor: ()[Ljava/util/function/Function;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
Signature: ()[Ljava/util/function/Function<Lio/vertx/ext/auth/authorization/AuthorizationContext;Ljava/lang/String;>;
public java.lang.String resolve(io.vertx.ext.auth.authorization.AuthorizationContext);
descriptor: (Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
arraylength
iconst_1
if_icmpne 2
1: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
iconst_0
aaload
aload 1
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
arraylength
iconst_1
if_icmple 10
3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 4: aload 0
getfield io.vertx.ext.auth.authorization.impl.VariableAwareExpression.parts:[Ljava/util/function/Function;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 8
StackMap locals: io.vertx.ext.auth.authorization.impl.VariableAwareExpression io.vertx.ext.auth.authorization.AuthorizationContext java.lang.StringBuilder top int int java.util.function.Function[]
StackMap stack:
5: aload 6
iload 4
aaload
astore 3
start local 3 6: aload 2
aload 3
aload 1
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 5
if_icmplt 5
9: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 10: StackMap locals: io.vertx.ext.auth.authorization.impl.VariableAwareExpression io.vertx.ext.auth.authorization.AuthorizationContext
StackMap stack:
ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/ext/auth/authorization/impl/VariableAwareExpression;
0 11 1 context Lio/vertx/ext/auth/authorization/AuthorizationContext;
4 10 2 result Ljava/lang/StringBuilder;
6 7 3 part Ljava/util/function/Function<Lio/vertx/ext/auth/authorization/AuthorizationContext;Ljava/lang/String;>;
MethodParameters:
Name Flags
context
private static java.lang.String lambda$0(java.lang.String, io.vertx.ext.auth.authorization.AuthorizationContext);
descriptor: (Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 ctx Lio/vertx/ext/auth/authorization/AuthorizationContext;
private static java.lang.String lambda$1(java.lang.String, io.vertx.ext.auth.authorization.AuthorizationContext);
descriptor: (Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 ctx Lio/vertx/ext/auth/authorization/AuthorizationContext;
private static java.lang.String lambda$2(java.lang.String, java.lang.String, io.vertx.ext.auth.authorization.AuthorizationContext);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lio/vertx/ext/auth/authorization/AuthorizationContext;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.ext.auth.authorization.AuthorizationContext.variables:()Lio/vertx/core/MultiMap;
aload 0
invokeinterface io.vertx.core.MultiMap.get:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 3 end local 2 LocalVariableTable:
Start End Slot Name Signature
0 4 2 ctx Lio/vertx/ext/auth/authorization/AuthorizationContext;
1 4 3 result Ljava/lang/String;
}
SourceFile: "VariableAwareExpression.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles