class_body
{ "{"
block_comment "/**\n * Marker object used to indicate \"do not serialize "...
field_declaration
modifiers
public "public"
final "final"
static "static"
type_identifier "Object"
variable_declarator
identifier "MARKER_FOR_EMPTY"
= "="
object_creation_expression
new "new"
type_identifier "Object"
argument_list
( "("
) ")"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Member (field, method) that represents property a"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "AnnotatedMember"
variable_declarator
identifier "_member"
; ";"
block_comment "/**\n * Annotations from context (most often, class that "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Annotations"
variable_declarator
identifier "_contextAnnotations"
; ";"
block_comment "/**\n * Type property is declared to have, either in clas"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_declaredType"
; ";"
block_comment "/**\n * Accessor method used to get property value, for\n "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Method"
variable_declarator
identifier "_accessorMethod"
; ";"
block_comment "/**\n * Field that contains the property value for field-"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Field"
variable_declarator
identifier "_field"
; ";"
block_comment "/*\n /****************************************************"...
field_declaration
modifiers
protected "protected"
generic_type
type_identifier "HashMap"
type_arguments
< "<"
type_identifier "Object"
, ","
type_identifier "Object"
> ">"
variable_declarator
identifier "_internalSettings"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Logical name of the property; will be used as the"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "SerializedString"
variable_declarator
identifier "_name"
; ";"
block_comment "/**\n * Wrapper name to use for this element, if any\n "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "PropertyName"
variable_declarator
identifier "_wrapperName"
; ";"
block_comment "/**\n * Type to use for locating serializer; normally sam"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_cfgSerializationType"
; ";"
block_comment "/**\n * Serializer to use for writing out the value: null"...
field_declaration
modifiers
protected "protected"
generic_type
type_identifier "JsonSerializer"
type_arguments
< "<"
type_identifier "Object"
> ">"
variable_declarator
identifier "_serializer"
; ";"
block_comment "/**\n * Serializer used for writing out null values, if a"...
field_declaration
modifiers
protected "protected"
generic_type
type_identifier "JsonSerializer"
type_arguments
< "<"
type_identifier "Object"
> ">"
variable_declarator
identifier "_nullSerializer"
; ";"
block_comment "/**\n * In case serializer is not known statically (i.e. "...
field_declaration
modifiers
protected "protected"
type_identifier "PropertySerializerMap"
variable_declarator
identifier "_dynamicSerializers"
; ";"
block_comment "/**\n * Whether null values are to be suppressed (nothing"...
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_suppressNulls"
; ";"
block_comment "/**\n * Value that is considered default value of the pro"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Object"
variable_declarator
identifier "_suppressableValue"
; ";"
block_comment "/**\n * Alternate set of property writers used when view-"...
field_declaration
modifiers
protected "protected"
final "final"
array_type
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
dimensions
[ "["
] "]"
variable_declarator
identifier "_includeInViews"
; ";"
block_comment "/**\n * If property being serialized needs type informati"...
field_declaration
modifiers
protected "protected"
type_identifier "TypeSerializer"
variable_declarator
identifier "_typeSerializer"
; ";"
block_comment "/**\n * Base type of the property, if the declared type i"...
field_declaration
modifiers
protected "protected"
type_identifier "JavaType"
variable_declarator
identifier "_nonTrivialBaseType"
; ";"
block_comment "/**\n * Whether value of this property has been marked as"...
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_isRequired"
; ";"
block_comment "/*\n /****************************************************"...
constructor_declaration (+303 nodes collapsed)
block_comment "/**\n * \"Copy constructor\" to be used by filtering sub-cl"...
constructor_declaration (+25 nodes collapsed)
constructor_declaration (+205 nodes collapsed)
method_declaration (+78 nodes collapsed)
block_comment "/**\n * Method called to assign value serializer for prop"...
method_declaration (+57 nodes collapsed)
block_comment "/**\n * Method called to assign null value serializer for"...
method_declaration (+57 nodes collapsed)
block_comment "/**\n * Method called create an instance that handles det"...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Method called to define type to consider as \"non-"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "setNonTrivialBaseType"
formal_parameters
( "("
formal_parameter
type_identifier "JavaType"
identifier "t"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "_nonTrivialBaseType"
= "="
identifier "t"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_declaredType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "PropertyName"
identifier "getWrapperName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_wrapperName"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isRequired"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_isRequired"
; ";"
} "}"
method_declaration (+41 nodes collapsed)
method_declaration (+41 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "AnnotatedMember"
identifier "getMember"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_member"
; ";"
} "}"
method_declaration (+69 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method for accessing value of specified internal "...
method_declaration (+41 nodes collapsed)
block_comment "/**\n * Method for setting specific internal setting to g"...
method_declaration (+61 nodes collapsed)
block_comment "/**\n * Method for removing entry for specified internal "...
method_declaration (+75 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
public "public"
type_identifier "SerializedString"
identifier "getSerializedName"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_name"
; ";"
} "}"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasSerializer"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "_serializer"
!= "!="
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "hasNullSerializer"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "_nullSerializer"
!= "!="
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
public "public"
boolean_type "boolean"
identifier "willSuppressNulls"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_suppressNulls"
; ";"
} "}"
line_comment "// Needed by BeanSerializer#getSchema"
method_declaration
modifiers
public "public"
generic_type
type_identifier "JsonSerializer"
type_arguments
< "<"
type_identifier "Object"
> ">"
identifier "getSerializer"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_serializer"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "JavaType"
identifier "getSerializationType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_cfgSerializationType"
; ";"
} "}"
method_declaration (+38 nodes collapsed)
method_declaration (+49 nodes collapsed)
block_comment "/**\n * Get the generic property type of this property wr"...
method_declaration (+43 nodes collapsed)
method_declaration (+25 nodes collapsed)
block_comment "/**\n *<p>\n * NOTE: due to introspection, this is a <"...
method_declaration (+21 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Attempt to add the output of the given {@link Bea"...
method_declaration (+256 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method called to access property that this bean s"...
method_declaration (+323 nodes collapsed)
block_comment "/**\n * Alternative to {@link #serializeAsField} that is "...
method_declaration
modifiers
public "public"
void_type "void"
identifier "serializeAsColumn"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "bean"
, ","
formal_parameter
type_identifier "JsonGenerator"
identifier "jgen"
, ","
formal_parameter
type_identifier "SerializerProvider"
identifier "prov"
) ")"
throws
throws "throws"
type_identifier "Exception"
block
{ "{"
local_variable_declaration
type_identifier "Object"
variable_declarator
identifier "value"
= "="
method_invocation
identifier "get"
argument_list
( "("
identifier "bean"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "value"
== "=="
null_literal "null"
) ")"
block
{ "{"
line_comment "// nulls need specialized handling"
if_statement (+40 nodes collapsed)
} "}"
line_comment "// otherwise find serializer to use"
local_variable_declaration
generic_type
type_identifier "JsonSerializer"
type_arguments
< "<"
type_identifier "Object"
> ">"
variable_declarator
identifier "ser"
= "="
identifier "_serializer"
; ";"
if_statement (+78 nodes collapsed)
line_comment "// and then see if we must suppress certain values (default,"...
if_statement (+89 nodes collapsed)
line_comment "// For non-nulls: simple check for direct cycles"
if_statement (+22 nodes collapsed)
if_statement (+46 nodes collapsed)
} "}"
block_comment "/**\n * Method called to serialize a placeholder used in "...
method_declaration (+64 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+142 nodes collapsed)
block_comment "/**\n * Method that can be used to access value of the pr"...
method_declaration (+52 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+265 nodes collapsed)
} "}"