public class io.dropwizard.jersey.validation.DropwizardConfiguredValidator implements org.glassfish.jersey.server.internal.inject.ConfiguredValidator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jersey.validation.DropwizardConfiguredValidator
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final javax.validation.Validator validator;
descriptor: Ljavax/validation/Validator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.jersey.validation.DropwizardConfiguredValidator.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(javax.validation.Validator);
descriptor: (Ljavax/validation/Validator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.validation.Validator
putfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 3 1 validator Ljavax/validation/Validator;
MethodParameters:
Name Flags
validator
public void validateResourceAndInputParams(java.lang.Object, org.glassfish.jersey.server.model.Invocable, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Lorg/glassfish/jersey/server/model/Invocable;[Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokevirtual io.dropwizard.jersey.validation.DropwizardConfiguredValidator.getGroup:(Lorg/glassfish/jersey/server/model/Invocable;)[Ljava/lang/Class;
astore 4
start local 4 1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 5
start local 5 2: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual io.dropwizard.jersey.validation.DropwizardConfiguredValidator.getConstraintsForClass:(Ljava/lang/Class;)Ljavax/validation/metadata/BeanDescriptor;
astore 6
start local 6 3: aload 6
invokeinterface javax.validation.metadata.BeanDescriptor.isBeanConstrained:()Z
ifeq 5
4: aload 5
aload 0
aload 1
aload 4
invokevirtual io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validate:(Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
5: StackMap locals: java.lang.Class[] java.util.Set javax.validation.metadata.BeanDescriptor
StackMap stack:
aload 5
aload 0
invokevirtual io.dropwizard.jersey.validation.DropwizardConfiguredValidator.forExecutables:()Ljavax/validation/executable/ExecutableValidator;
aload 1
aload 2
invokevirtual org.glassfish.jersey.server.model.Invocable.getHandlingMethod:()Ljava/lang/reflect/Method;
aload 3
aload 4
invokeinterface javax.validation.executable.ExecutableValidator.validateParameters:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
6: aload 5
invokeinterface java.util.Set.isEmpty:()Z
ifne 8
7: new io.dropwizard.jersey.validation.JerseyViolationException
dup
aload 5
aload 2
invokespecial io.dropwizard.jersey.validation.JerseyViolationException.<init>:(Ljava/util/Set;Lorg/glassfish/jersey/server/model/Invocable;)V
athrow
8: StackMap locals:
StackMap stack:
return
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 9 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 9 1 resource Ljava/lang/Object;
0 9 2 invocable Lorg/glassfish/jersey/server/model/Invocable;
0 9 3 objects [Ljava/lang/Object;
1 9 4 groups [Ljava/lang/Class;
2 9 5 violations Ljava/util/Set<Ljavax/validation/ConstraintViolation<Ljava/lang/Object;>;>;
3 9 6 beanDescriptor Ljavax/validation/metadata/BeanDescriptor;
Exceptions:
throws javax.validation.ConstraintViolationException
MethodParameters:
Name Flags
resource
invocable final
objects
private java.lang.Class<?>[] getGroup(org.glassfish.jersey.server.model.Invocable);
descriptor: (Lorg/glassfish/jersey/server/model/Invocable;)[Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: invokestatic com.google.common.collect.ImmutableList.builder:()Lcom/google/common/collect/ImmutableList$Builder;
astore 2
start local 2 1: aload 1
invokevirtual org.glassfish.jersey.server.model.Invocable.getParameters:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: io.dropwizard.jersey.validation.DropwizardConfiguredValidator org.glassfish.jersey.server.model.Invocable com.google.common.collect.ImmutableList$Builder top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.glassfish.jersey.server.model.Parameter
astore 3
start local 3 3: aload 3
ldc Lio/dropwizard/validation/Validated;
invokevirtual org.glassfish.jersey.server.model.Parameter.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 5
4: aload 2
aload 3
ldc Lio/dropwizard/validation/Validated;
invokevirtual org.glassfish.jersey.server.model.Parameter.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.dropwizard.validation.Validated
invokeinterface io.dropwizard.validation.Validated.value:()[Ljava/lang/Class;
invokevirtual com.google.common.collect.ImmutableList$Builder.add:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 2
invokevirtual com.google.common.collect.ImmutableList$Builder.build:()Lcom/google/common/collect/ImmutableList;
astore 3
start local 3 7: aload 3
invokevirtual com.google.common.collect.ImmutableList.size:()I
tableswitch { // 0 - 1
0: 8
1: 9
default: 10
}
8: StackMap locals: io.dropwizard.jersey.validation.DropwizardConfiguredValidator org.glassfish.jersey.server.model.Invocable com.google.common.collect.ImmutableList$Builder com.google.common.collect.ImmutableList
StackMap stack:
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljavax/validation/groups/Default;
aastore
areturn
9: StackMap locals:
StackMap stack:
aload 3
iconst_0
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast java.lang.Class[]
areturn
10: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 11: goto 21
12: StackMap locals: int
StackMap stack:
iload 4
istore 5
start local 5 13: goto 19
14: StackMap locals: int
StackMap stack:
aload 3
iload 4
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast java.lang.Object[]
aload 3
iload 5
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast java.lang.Object[]
invokestatic java.util.Arrays.deepEquals:([Ljava/lang/Object;[Ljava/lang/Object;)Z
ifne 18
15: new javax.ws.rs.WebApplicationException
dup
new java.lang.StringBuilder
dup
ldc "Parameters must have the same validation groups in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 1
invokevirtual org.glassfish.jersey.server.model.Invocable.getHandlingMethod:()Ljava/lang/reflect/Method;
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
sipush 500
17: invokespecial javax.ws.rs.WebApplicationException.<init>:(Ljava/lang/String;I)V
athrow
18: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
19: iload 5
aload 3
invokevirtual com.google.common.collect.ImmutableList.size:()I
if_icmplt 14
end local 5 20: iinc 4 1
StackMap locals:
StackMap stack:
21: iload 4
aload 3
invokevirtual com.google.common.collect.ImmutableList.size:()I
if_icmplt 12
end local 4 22: aload 3
iconst_0
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast java.lang.Class[]
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 23 1 invocable Lorg/glassfish/jersey/server/model/Invocable;
1 23 2 builder Lcom/google/common/collect/ImmutableList$Builder<[Ljava/lang/Class<*>;>;
3 5 3 parameter Lorg/glassfish/jersey/server/model/Parameter;
7 23 3 groups Lcom/google/common/collect/ImmutableList<[Ljava/lang/Class<*>;>;
11 22 4 i I
13 20 5 j I
Signature: (Lorg/glassfish/jersey/server/model/Invocable;)[Ljava/lang/Class<*>;
MethodParameters:
Name Flags
invocable
public void validateResult(java.lang.Object, org.glassfish.jersey.server.model.Invocable, java.lang.Object);
descriptor: (Ljava/lang/Object;Lorg/glassfish/jersey/server/model/Invocable;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual org.glassfish.jersey.server.model.Invocable.getHandlingMethod:()Ljava/lang/reflect/Method;
ldc Lio/dropwizard/validation/Validated;
invokevirtual java.lang.reflect.Method.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 3
1: aload 2
invokevirtual org.glassfish.jersey.server.model.Invocable.getHandlingMethod:()Ljava/lang/reflect/Method;
ldc Lio/dropwizard/validation/Validated;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.dropwizard.validation.Validated
invokeinterface io.dropwizard.validation.Validated.value:()[Ljava/lang/Class;
astore 4
start local 4 2: goto 4
end local 4 3: StackMap locals:
StackMap stack:
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljavax/validation/groups/Default;
aastore
astore 4
start local 4 4: StackMap locals: java.lang.Class[]
StackMap stack:
aload 0
invokevirtual io.dropwizard.jersey.validation.DropwizardConfiguredValidator.forExecutables:()Ljavax/validation/executable/ExecutableValidator;
aload 1
aload 2
invokevirtual org.glassfish.jersey.server.model.Invocable.getHandlingMethod:()Ljava/lang/reflect/Method;
aload 3
aload 4
invokeinterface javax.validation.executable.ExecutableValidator.validateReturnValue:(Ljava/lang/Object;Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
5: astore 5
start local 5 6: aload 5
invokeinterface java.util.Set.isEmpty:()Z
ifne 9
7: getstatic io.dropwizard.jersey.validation.DropwizardConfiguredValidator.LOGGER:Lorg/slf4j/Logger;
ldc "Response validation failed: {}"
aload 5
invokestatic io.dropwizard.validation.ConstraintViolations.copyOf:(Ljava/util/Set;)Lcom/google/common/collect/ImmutableSet;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
8: new io.dropwizard.jersey.validation.JerseyViolationException
dup
aload 5
aload 2
invokespecial io.dropwizard.jersey.validation.JerseyViolationException.<init>:(Ljava/util/Set;Lorg/glassfish/jersey/server/model/Invocable;)V
athrow
9: StackMap locals: java.util.Set
StackMap stack:
return
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 10 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 10 1 resource Ljava/lang/Object;
0 10 2 invocable Lorg/glassfish/jersey/server/model/Invocable;
0 10 3 returnValue Ljava/lang/Object;
2 3 4 groups [Ljava/lang/Class;
4 10 4 groups [Ljava/lang/Class;
6 10 5 violations Ljava/util/Set<Ljavax/validation/ConstraintViolation<Ljava/lang/Object;>;>;
Exceptions:
throws javax.validation.ConstraintViolationException
MethodParameters:
Name Flags
resource
invocable
returnValue
public <T> java.util.Set<javax.validation.ConstraintViolation<T>> validate(T, java.lang.Class<?>[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
aload 1
aload 2
invokeinterface javax.validation.Validator.validate:(Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 1 1 t TT;
0 1 2 classes [Ljava/lang/Class;
Signature: <T:Ljava/lang/Object;>(TT;[Ljava/lang/Class<*>;)Ljava/util/Set<Ljavax/validation/ConstraintViolation<TT;>;>;
MethodParameters:
Name Flags
t
classes
public <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateProperty(T, java.lang.String, java.lang.Class<?>[]);
descriptor: (Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;)Ljava/util/Set;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
aload 1
aload 2
aload 3
invokeinterface javax.validation.Validator.validateProperty:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;)Ljava/util/Set;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 1 1 t TT;
0 1 2 s Ljava/lang/String;
0 1 3 classes [Ljava/lang/Class;
Signature: <T:Ljava/lang/Object;>(TT;Ljava/lang/String;[Ljava/lang/Class<*>;)Ljava/util/Set<Ljavax/validation/ConstraintViolation<TT;>;>;
MethodParameters:
Name Flags
t
s
classes
public <T> java.util.Set<javax.validation.ConstraintViolation<T>> validateValue(java.lang.Class<T>, java.lang.String, , java.lang.Class<?>[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
aload 1
aload 2
aload 3
aload 4
invokeinterface javax.validation.Validator.validateValue:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 1 1 aClass Ljava/lang/Class<TT;>;
0 1 2 s Ljava/lang/String;
0 1 3 o Ljava/lang/Object;
0 1 4 classes [Ljava/lang/Class;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class<*>;)Ljava/util/Set<Ljavax/validation/ConstraintViolation<TT;>;>;
MethodParameters:
Name Flags
aClass
s
o
classes
public javax.validation.metadata.BeanDescriptor getConstraintsForClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljavax/validation/metadata/BeanDescriptor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
aload 1
invokeinterface javax.validation.Validator.getConstraintsForClass:(Ljava/lang/Class;)Ljavax/validation/metadata/BeanDescriptor;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 1 1 aClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljavax/validation/metadata/BeanDescriptor;
MethodParameters:
Name Flags
aClass
public <T> T unwrap(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
aload 1
invokeinterface javax.validation.Validator.unwrap:(Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
0 1 1 aClass Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
aClass
public javax.validation.executable.ExecutableValidator forExecutables();
descriptor: ()Ljavax/validation/executable/ExecutableValidator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jersey.validation.DropwizardConfiguredValidator.validator:Ljavax/validation/Validator;
invokeinterface javax.validation.Validator.forExecutables:()Ljavax/validation/executable/ExecutableValidator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/DropwizardConfiguredValidator;
}
SourceFile: "DropwizardConfiguredValidator.java"
InnerClasses:
public final Builder = com.google.common.collect.ImmutableList$Builder of com.google.common.collect.ImmutableList