class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * We will also cache some dynamically constructed d"...
field_declaration (+44 nodes collapsed)
block_comment "/**\n * During deserializer construction process we may n"...
field_declaration (+40 nodes collapsed)
block_comment "/*\n /****************************************************"...
constructor_declaration
modifiers
public "public"
identifier "DeserializerCache"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that can be used to determine how many des"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Method that will drop all dynamically constructed"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "flushCachedDeserializers"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "_cachedDeserializers"
. "."
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method called to get hold of a deserializer for a"...
method_declaration (+103 nodes collapsed)
block_comment "/**\n * Method called to get hold of a deserializer to us"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Method called to find out whether provider would "...
method_declaration (+80 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Method that will try to create a deserializer for"...
method_declaration (+188 nodes collapsed)
block_comment "/**\n * Method that handles actual construction (via fact"...
method_declaration (+223 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that does the heavy lifting of checking fo"...
method_declaration (+419 nodes collapsed)
method_declaration (+383 nodes collapsed)
block_comment "/**\n * Helper method called to check if a class or metho"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Helper method that will check whether given annot"...
method_declaration (+120 nodes collapsed)
method_declaration (+77 nodes collapsed)
block_comment "/**\n * Method called to see if given method has annotati"...
method_declaration
modifiers
private "private"
type_identifier "JavaType"
identifier "modifyTypeByAnnotation"
formal_parameters
( "("
formal_parameter
type_identifier "DeserializationContext"
identifier "ctxt"
, ","
formal_parameter
type_identifier "Annotated"
identifier "a"
, ","
formal_parameter
type_identifier "JavaType"
identifier "type"
) ")"
throws
throws "throws"
type_identifier "JsonMappingException"
block
{ "{"
line_comment "// first: let's check class for the instance itself:"
local_variable_declaration
type_identifier "AnnotationIntrospector"
variable_declarator
identifier "intr"
= "="
method_invocation
identifier "ctxt"
. "."
identifier "getAnnotationIntrospector"
argument_list
( "("
) ")"
; ";"
local_variable_declaration (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "subclass"
!= "!="
null_literal "null"
) ")"
block
{ "{"
try_statement
try "try"
block
{ "{"
expression_statement
assignment_expression
identifier "type"
= "="
method_invocation any 1:2
identifier "type"
. "."
identifier "narrowBy"
argument_list
( "("
identifier "subclass"
) ")"
; ";"
} "}"
catch_clause (+76 nodes collapsed)
} "}"
line_comment "// then key class"
if_statement (+619 nodes collapsed)
return_statement
return "return"
identifier "type"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Helper method used to prevent both caching and ca"...
method_declaration (+89 nodes collapsed)
method_declaration (+163 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+92 nodes collapsed)
method_declaration (+33 nodes collapsed)
} "}"