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–295 unchanged (295 lines)
296 * getRawClass() == Object.class
297 *</code>
298 * and used to figure if we basically have "untyped" type object.
299 *
300 * @since 2.5
301 */
302
303 /**
304 * Accessor for checking whether handlers for dealing with values of
305 * this type should use static typing (as opposed to dynamic typing).
306 * Note that while value of 'true' does mean that static typing is to
307 * be used, value of 'false' may still be overridden by other settings.
308 *
…lines 309–468 unchanged (160 lines)

After

…lines 1–295 unchanged (295 lines)
296 * getRawClass() == Object.class
297 *</code>
298 * and used to figure if we basically have "untyped" type object.
299 *
300 * @since 2.5
301 */
302 public final boolean isJavaLangObject() { return _class == Object.class; }
303
304 /**
305 * Accessor for checking whether handlers for dealing with values of
306 * this type should use static typing (as opposed to dynamic typing).
307 * Note that while value of 'true' does mean that static typing is to
308 * be used, value of 'false' may still be overridden by other settings.
…lines 309–469 unchanged (161 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Modifier"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "type"
. "."
identifier "ResolvedType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "type"
. "."
identifier "TypeFactory"
; ";"
block_comment "/**\n * Base class for type token classes used both to contai"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "JavaType"
superclass
extends "extends"
type_identifier "ResolvedType"
super_interfaces (+22 nodes collapsed)
line_comment "// 2.2"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * This is the nominal type-erased Class that would "...
field_declaration
modifiers
protected "protected"
final "final"
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "_class"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
integral_type
int "int"
variable_declarator
identifier "_hash"
; ";"
block_comment "/**\n * Optional handler (codec) that can be attached to "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Object"
variable_declarator
identifier "_valueHandler"
; ";"
block_comment "/**\n * Optional handler that can be attached to indicate"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Object"
variable_declarator
identifier "_typeHandler"
; ";"
block_comment "/**\n * Whether entities defined with this type should be"...
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_asStatic"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * @param raw \"Raw\" (type-erased) class for this typ"...
constructor_declaration (+81 nodes collapsed)
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withTypeHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withContentTypeHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withValueHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withContentValueHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * Method that can be called to get a type instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withStaticTyping"
formal_parameters
( "("
) ")"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that can be called to do a \"narrowing\" con"...
method_declaration (+135 nodes collapsed)
block_comment "/**\n * More efficient version of {@link #narrowBy}, call"...
method_declaration (+124 nodes collapsed)
block_comment "/**\n * Method that can be called to do a \"widening\" conv"...
method_declaration (+57 nodes collapsed)
method_declaration
modifiers
protected "protected"
abstract "abstract"
type_identifier "JavaType"
identifier "_narrow"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "subclass"
) ")"
; ";"
block_comment "/**\n *<p>\n * Default implementation is just to call "...
method_declaration (+29 nodes collapsed)
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "narrowContentsBy"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "contentClass"
) ")"
; ";"
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "widenContentsBy"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "contentClass"
) ")"
; ";"
block_comment "/*\n /****************************************************"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Method that can be used to check whether this typ"...
method_declaration (+31 nodes collapsed)
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Convenience method for checking whether underlyin"...
method_declaration (+73 nodes collapsed)
method_declaration (+28 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isArrayType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
method_declaration (+25 nodes collapsed)
method_declaration (+25 nodes collapsed)
method_declaration (+25 nodes collapsed)
method_declaration (+32 nodes collapsed)
block_comment "/**\n * @return True if type represented is a container t"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
boolean_type "boolean"
identifier "isContainerType"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * @return True if type is either true {@link java.u"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isCollectionLikeType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * @return True if type is either true {@link java.u"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isMapLikeType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * Convenience method, short-hand for\n *<code>\n "...
block_comment "/**\n * Accessor for checking whether handlers for dealin"...
method_declaration
modifiers
public "public"
final "final"
boolean_type "boolean"
identifier "useStaticType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_asStatic"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+25 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getKeyType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
integral_type
int "int"
identifier "containedTypeCount"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
decimal_integer_literal "0"
; ";"
} "}"
method_declaration (+22 nodes collapsed)
method_declaration (+22 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "getParameterSource"
formal_parameters
( "("
) ")"
; ";"
block_comment "/*\n /****************************************************"...
line_comment "// NOTE: not defined in Resolved type"
block_comment "/**\n * Convenience method that is functionally same as:\n"...
method_declaration (+48 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method for accessing value handler associated wit"...
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Method for accessing type handler associated with"...
method_declaration (+34 nodes collapsed)
block_comment "/*\n /****************************************************"...
line_comment "//public abstract String toCanonical();"
block_comment "/**\n * Method for accessing signature that contains gene"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * \n * @param sb StringBuilder to append signatu"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "StringBuilder"
identifier "getGenericSignature"
formal_parameters
( "("
formal_parameter
type_identifier "StringBuilder"
identifier "sb"
) ")"
; ";"
block_comment "/**\n * Method for accessing signature without generic\n "...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Method for accessing signature without generic\n "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "StringBuilder"
identifier "getErasedSignature"
formal_parameters
( "("
formal_parameter
type_identifier "StringBuilder"
identifier "sb"
) ")"
; ";"
block_comment "/*\n /****************************************************"...
method_declaration (+85 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
type_identifier "String"
identifier "toString"
formal_parameters
( "("
) ")"
; ";"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
boolean_type "boolean"
identifier "equals"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "o"
) ")"
; ";"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
final "final"
integral_type
int "int"
identifier "hashCode"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_hash"
; ";"
} "}"
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Modifier"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "type"
. "."
identifier "ResolvedType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "type"
. "."
identifier "TypeFactory"
; ";"
block_comment "/**\n * Base class for type token classes used both to contai"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "JavaType"
superclass
extends "extends"
type_identifier "ResolvedType"
super_interfaces (+22 nodes collapsed)
line_comment "// 2.2"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * This is the nominal type-erased Class that would "...
field_declaration
modifiers
protected "protected"
final "final"
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "_class"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
integral_type
int "int"
variable_declarator
identifier "_hash"
; ";"
block_comment "/**\n * Optional handler (codec) that can be attached to "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Object"
variable_declarator
identifier "_valueHandler"
; ";"
block_comment "/**\n * Optional handler that can be attached to indicate"...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "Object"
variable_declarator
identifier "_typeHandler"
; ";"
block_comment "/**\n * Whether entities defined with this type should be"...
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_asStatic"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * @param raw \"Raw\" (type-erased) class for this typ"...
constructor_declaration (+81 nodes collapsed)
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withTypeHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withContentTypeHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withValueHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * \"Copy method\" that will construct a new instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withContentValueHandler"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "h"
) ")"
; ";"
block_comment "/**\n * Method that can be called to get a type instance "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "withStaticTyping"
formal_parameters
( "("
) ")"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that can be called to do a \"narrowing\" con"...
method_declaration (+135 nodes collapsed)
block_comment "/**\n * More efficient version of {@link #narrowBy}, call"...
method_declaration (+124 nodes collapsed)
block_comment "/**\n * Method that can be called to do a \"widening\" conv"...
method_declaration (+57 nodes collapsed)
method_declaration
modifiers
protected "protected"
abstract "abstract"
type_identifier "JavaType"
identifier "_narrow"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "subclass"
) ")"
; ";"
block_comment "/**\n *<p>\n * Default implementation is just to call "...
method_declaration (+29 nodes collapsed)
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "narrowContentsBy"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "contentClass"
) ")"
; ";"
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "JavaType"
identifier "widenContentsBy"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "contentClass"
) ")"
; ";"
block_comment "/*\n /****************************************************"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * Method that can be used to check whether this typ"...
method_declaration (+31 nodes collapsed)
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Convenience method for checking whether underlyin"...
method_declaration (+73 nodes collapsed)
method_declaration (+28 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isArrayType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
method_declaration (+25 nodes collapsed)
method_declaration (+25 nodes collapsed)
method_declaration (+25 nodes collapsed)
method_declaration (+32 nodes collapsed)
block_comment "/**\n * @return True if type represented is a container t"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
boolean_type "boolean"
identifier "isContainerType"
formal_parameters
( "("
) ")"
; ";"
block_comment "/**\n * @return True if type is either true {@link java.u"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isCollectionLikeType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * @return True if type is either true {@link java.u"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isMapLikeType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
false "false"
; ";"
} "}"
block_comment "/**\n * Convenience method, short-hand for\n *<code>\n "...
method_declaration
modifiers
public "public"
final "final"
boolean_type "boolean"
identifier "isJavaLangObject"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
identifier "_class"
== "=="
class_literal
type_identifier "Object"
. "."
class "class"
; ";"
} "}"
block_comment "/**\n * Accessor for checking whether handlers for dealin"...
method_declaration
modifiers
public "public"
final "final"
boolean_type "boolean"
identifier "useStaticType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_asStatic"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+25 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getKeyType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
integral_type
int "int"
identifier "containedTypeCount"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
decimal_integer_literal "0"
; ";"
} "}"
method_declaration (+22 nodes collapsed)
method_declaration (+22 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "getParameterSource"
formal_parameters
( "("
) ")"
; ";"
block_comment "/*\n /****************************************************"...
line_comment "// NOTE: not defined in Resolved type"
block_comment "/**\n * Convenience method that is functionally same as:\n"...
method_declaration (+48 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method for accessing value handler associated wit"...
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Method for accessing type handler associated with"...
method_declaration (+34 nodes collapsed)
block_comment "/*\n /****************************************************"...
line_comment "//public abstract String toCanonical();"
block_comment "/**\n * Method for accessing signature that contains gene"...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * \n * @param sb StringBuilder to append signatu"...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "StringBuilder"
identifier "getGenericSignature"
formal_parameters
( "("
formal_parameter
type_identifier "StringBuilder"
identifier "sb"
) ")"
; ";"
block_comment "/**\n * Method for accessing signature without generic\n "...
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Method for accessing signature without generic\n "...
method_declaration
modifiers
public "public"
abstract "abstract"
type_identifier "StringBuilder"
identifier "getErasedSignature"
formal_parameters
( "("
formal_parameter
type_identifier "StringBuilder"
identifier "sb"
) ")"
; ";"
block_comment "/*\n /****************************************************"...
method_declaration (+85 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
type_identifier "String"
identifier "toString"
formal_parameters
( "("
) ")"
; ";"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
abstract "abstract"
boolean_type "boolean"
identifier "equals"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "o"
) ")"
; ";"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
final "final"
integral_type
int "int"
identifier "hashCode"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_hash"
; ";"
} "}"
} "}"