public class com.mongodb.internal.validator.MappedFieldNameValidator implements org.bson.FieldNameValidator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.internal.validator.MappedFieldNameValidator
super_class: java.lang.Object
{
private final org.bson.FieldNameValidator defaultValidator;
descriptor: Lorg/bson/FieldNameValidator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, org.bson.FieldNameValidator> fieldNameToValidatorMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/bson/FieldNameValidator;>;
public void <init>(org.bson.FieldNameValidator, java.util.Map<java.lang.String, org.bson.FieldNameValidator>);
descriptor: (Lorg/bson/FieldNameValidator;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.internal.validator.MappedFieldNameValidator.defaultValidator:Lorg/bson/FieldNameValidator;
2: aload 0
aload 2
putfield com.mongodb.internal.validator.MappedFieldNameValidator.fieldNameToValidatorMap:Ljava/util/Map;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/validator/MappedFieldNameValidator;
0 4 1 defaultValidator Lorg/bson/FieldNameValidator;
0 4 2 fieldNameToValidatorMap Ljava/util/Map<Ljava/lang/String;Lorg/bson/FieldNameValidator;>;
Signature: (Lorg/bson/FieldNameValidator;Ljava/util/Map<Ljava/lang/String;Lorg/bson/FieldNameValidator;>;)V
MethodParameters:
Name Flags
defaultValidator final
fieldNameToValidatorMap final
public boolean validate(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.validator.MappedFieldNameValidator.defaultValidator:Lorg/bson/FieldNameValidator;
aload 1
invokeinterface org.bson.FieldNameValidator.validate:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/validator/MappedFieldNameValidator;
0 1 1 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
fieldName final
public org.bson.FieldNameValidator getValidatorForField(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bson/FieldNameValidator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.validator.MappedFieldNameValidator.fieldNameToValidatorMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
getfield com.mongodb.internal.validator.MappedFieldNameValidator.fieldNameToValidatorMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.FieldNameValidator
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.validator.MappedFieldNameValidator.defaultValidator:Lorg/bson/FieldNameValidator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/validator/MappedFieldNameValidator;
0 3 1 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
fieldName final
}
SourceFile: "MappedFieldNameValidator.java"