class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "pollingPeriodMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
integral_type
long "long"
variable_declarator
identifier "durationMillis"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "VerificationMode"
variable_declarator
identifier "delegate"
; ";"
field_declaration
modifiers
private "private"
final "final"
boolean_type "boolean"
variable_declarator
identifier "returnOnSuccess"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Timer"
variable_declarator
identifier "timer"
; ";"
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+48 nodes collapsed)
block_comment "/**\n * Create this verification mode, to be used to veri"...
constructor_declaration (+76 nodes collapsed)
block_comment "/**\n * Verify the given ongoing verification data, and c"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "verify"
formal_parameters
( "("
formal_parameter
type_identifier "VerificationData"
identifier "data"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "AssertionError"
variable_declarator
identifier "error"
= "="
null_literal "null"
; ";"
expression_statement
method_invocation
identifier "timer"
. "."
identifier "start"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "timer"
. "."
identifier "isCounting"
argument_list
( "("
) ")"
) ")"
block
{ "{"
try_statement
try "try"
block (+35 nodes collapsed)
catch_clause (+22 nodes collapsed)
catch_clause
catch "catch"
( "("
catch_formal_parameter
catch_type
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
scoped_type_identifier
type_identifier "org"
. "."
type_identifier "mockito"
. "."
type_identifier "exceptions"
. "."
type_identifier "verification"
. "."
type_identifier "junit"
. "."
type_identifier "ArgumentsAreDifferent"
identifier "e"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "error"
= "="
method_invocation
identifier "handleVerifyException"
argument_list
( "("
identifier "e"
) ")"
; ";"
} "}"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "error"
!= "!="
null_literal "null"
) ")"
block
{ "{"
throw_statement
throw "throw"
identifier "error"
; ";"
} "}"
} "}"
method_declaration (+48 nodes collapsed)
method_declaration (+32 nodes collapsed)
method_declaration (+42 nodes collapsed)
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getPollingPeriod"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "pollingPeriodMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getDuration"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "durationMillis"
; ";"
} "}"
method_declaration
modifiers
public "public"
type_identifier "VerificationMode"
identifier "getDelegate"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "delegate"
; ";"
} "}"
} "}"