class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "1015873563138522374L"
; ";"
block_comment "/** The row keys. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "rowKeys"
; ";"
block_comment "/** The column keys. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "columnKeys"
; ";"
block_comment "/** The row data. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "rows"
; ";"
block_comment "/**\r\n * Creates a new instance (initially empty).\r\n "...
constructor_declaration (+70 nodes collapsed)
block_comment "/**\r\n * Returns the row count.\r\n *\r\n * @return T"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the column count.\r\n *\r\n * @retur"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the object for a given row and column.\r\n"...
method_declaration (+137 nodes collapsed)
block_comment "/**\r\n * Returns the key for a given row.\r\n *\r\n *"...
method_declaration (+33 nodes collapsed)
block_comment "/**\r\n * Returns the row index for a given key.\r\n *\r\n"...
method_declaration (+29 nodes collapsed)
block_comment "/**\r\n * Returns the row keys.\r\n *\r\n * @return Th"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the key for a given column.\r\n *\r\n "...
method_declaration (+33 nodes collapsed)
block_comment "/**\r\n * Returns the column index for a given key.\r\n "...
method_declaration (+29 nodes collapsed)
block_comment "/**\r\n * Returns the column keys.\r\n *\r\n * @return"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the object for the given row and column "...
method_declaration
modifiers
public "public"
type_identifier "Object"
identifier "getObject"
formal_parameters
( "("
formal_parameter
type_identifier "Comparable"
identifier "rowKey"
, ","
formal_parameter
type_identifier "Comparable"
identifier "columnKey"
) ")"
block
{ "{"
if_statement (+25 nodes collapsed)
if_statement (+25 nodes collapsed)
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "row"
= "="
method_invocation
field_access
this "this"
. "."
identifier "rowKeys"
. "."
identifier "indexOf"
argument_list
( "("
identifier "rowKey"
) ")"
; ";"
if_statement (+34 nodes collapsed)
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "column"
= "="
method_invocation
field_access
this "this"
. "."
identifier "columnKeys"
. "."
identifier "indexOf"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
if_statement (+34 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "row"
>= ">="
decimal_integer_literal "0"
) ")"
block
{ "{"
local_variable_declaration (+21 nodes collapsed)
return_statement
return "return"
method_invocation
identifier "rowData"
. "."
identifier "getObject"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
} "}"
else "else"
block
{ "{"
return_statement
return "return"
null_literal "null"
; ";"
} "}"
} "}"
block_comment "/**\r\n * Adds an object to the table. Performs the same "...
method_declaration (+34 nodes collapsed)
block_comment "/**\r\n * Adds or updates an object.\r\n *\r\n * @para"...
method_declaration (+223 nodes collapsed)
block_comment "/**\r\n * Removes an object from the table by setting it t"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "removeObject"
formal_parameters
( "("
formal_parameter
type_identifier "Comparable"
identifier "rowKey"
, ","
formal_parameter
type_identifier "Comparable"
identifier "columnKey"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "setObject"
argument_list
( "("
null_literal "null"
, ","
identifier "rowKey"
, ","
identifier "columnKey"
) ")"
; ";"
line_comment "// 1. check whether the row is now empty.\r"
local_variable_declaration
boolean_type "boolean"
variable_declarator
identifier "allNull"
= "="
true "true"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "rowIndex"
= "="
method_invocation
identifier "getRowIndex"
argument_list
( "("
identifier "rowKey"
) ")"
; ";"
local_variable_declaration (+21 nodes collapsed)
for_statement (+62 nodes collapsed)
if_statement (+35 nodes collapsed)
line_comment "// 2. check whether the column is now empty.\r"
} "}"
block_comment "/**\r\n * Removes an entire row from the table.\r\n *\r\n "...
method_declaration (+41 nodes collapsed)
block_comment "/**\r\n * Removes an entire row from the table.\r\n *\r\n "...
method_declaration
modifiers
public "public"
void_type "void"
identifier "removeRow"
formal_parameters
( "("
formal_parameter
type_identifier "Comparable"
identifier "rowKey"
) ")"
block
{ "{"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "index"
= "="
method_invocation
identifier "getRowIndex"
argument_list
( "("
identifier "rowKey"
) ")"
; ";"
expression_statement
method_invocation
identifier "removeRow"
argument_list
( "("
identifier "index"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Removes an entire column from the table.\r\n *"...
method_declaration (+35 nodes collapsed)
block_comment "/**\r\n * Removes an entire column from the table.\r\n *"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "removeColumn"
formal_parameters
( "("
formal_parameter
type_identifier "Comparable"
identifier "columnKey"
) ")"
block
{ "{"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "index"
= "="
method_invocation
identifier "getColumnIndex"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
if_statement (+34 nodes collapsed)
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iterator"
= "="
method_invocation
field_access
this "this"
. "."
identifier "rows"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "iterator"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "KeyedObjects"
variable_declarator
identifier "rowData"
= "="
cast_expression
( "("
type_identifier "KeyedObjects"
) ")"
method_invocation
identifier "iterator"
. "."
identifier "next"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "rowData"
. "."
identifier "removeValue"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
} "}"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "columnKeys"
. "."
identifier "remove"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Tests this object for equality with an arbitrary"...
method_declaration (+328 nodes collapsed)
block_comment "/**\r\n * Returns a hashcode for this object.\r\n * \r\n "...
method_declaration (+79 nodes collapsed)
block_comment "/**\r\n * Returns a clone.\r\n * \r\n * @return A clon"...
method_declaration (+180 nodes collapsed)
} "}"