Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–585 unchanged (585 lines)
586 if (value == null) { // nulls need specialized handling
587 if (_nullSerializer != null) {
588 _nullSerializer.serialize(null, jgen, prov);
589 } else { // can NOT suppress entries in tabular output
590 jgen.writeNull();
591 }
592 }
593 // otherwise find serializer to use
594 JsonSerializer<Object> ser = _serializer;
595 if (ser == null) {
596 Class<?> cls = value.getClass();
597 PropertySerializerMap map = _dynamicSerializers;
598 ser = map.serializerFor(cls);
…lines 599–714 unchanged (116 lines)

After

…lines 1–585 unchanged (585 lines)
586 if (value == null) { // nulls need specialized handling
587 if (_nullSerializer != null) {
588 _nullSerializer.serialize(null, jgen, prov);
589 } else { // can NOT suppress entries in tabular output
590 jgen.writeNull();
591 }
592 return;
593 }
594 // otherwise find serializer to use
595 JsonSerializer<Object> ser = _serializer;
596 if (ser == null) {
597 Class<?> cls = value.getClass();
598 PropertySerializerMap map = _dynamicSerializers;
…lines 599–715 unchanged (117 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "annotation"
. "."
identifier "Annotation"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Field"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Method"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "io"
. "."
identifier "SerializedString"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonFormatVisitors"
. "."
identifier "JsonObjectFormatVisitor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonschema"
. "."
identifier "SchemaAware"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsontype"
. "."
identifier "TypeSerializer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "node"
. "."
identifier "ObjectNode"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "Annotations"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "NameTransformer"
; ";"
block_comment "/**\n * Base bean property handler class, which implements co"...
class_declaration
modifiers
public "public"
class "class"
identifier "BeanPropertyWriter"
super_interfaces
implements "implements"
type_list
type_identifier "BeanProperty"
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)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "annotation"
. "."
identifier "Annotation"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Field"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Method"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "io"
. "."
identifier "SerializedString"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonFormatVisitors"
. "."
identifier "JsonObjectFormatVisitor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonschema"
. "."
identifier "SchemaAware"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsontype"
. "."
identifier "TypeSerializer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "node"
. "."
identifier "ObjectNode"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "Annotations"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "NameTransformer"
; ";"
block_comment "/**\n * Base bean property handler class, which implements co"...
class_declaration
modifiers
public "public"
class "class"
identifier "BeanPropertyWriter"
super_interfaces
implements "implements"
type_list
type_identifier "BeanProperty"
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)
return_statement
return "return"
; ";"
} "}"
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)
} "}"