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"
; ";"
} "}"
} "}"