class_body
{ "{"
line_comment "// android.hardware.display.DisplayManager.EVENT_FLAG_DISPLA"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "EVENT_FLAG_DISPLAY_CHANGED"
= "="
binary_expression
decimal_integer_literal "1L"
<< "<<"
decimal_integer_literal "2"
; ";"
interface_declaration
modifiers
public "public"
interface "interface"
identifier "DisplayListener"
interface_body
{ "{"
block_comment "/**\n * Called whenever the properties of a logical {"...
method_declaration
void_type "void"
identifier "onDisplayChanged"
formal_parameters
( "("
formal_parameter
integral_type
int "int"
identifier "displayId"
) ")"
; ";"
} "}"
class_declaration (+40 nodes collapsed)
field_declaration
modifiers
private "private"
final "final"
type_identifier "Object"
variable_declarator
identifier "manager"
; ";"
line_comment "// instance of hidden class android.hardware.display.Display"...
field_declaration
modifiers
private "private"
type_identifier "Method"
variable_declarator
identifier "createVirtualDisplayMethod"
; ";"
field_declaration
modifiers
private "private"
type_identifier "Method"
variable_declarator
identifier "requestDisplayPowerMethod"
; ";"
method_declaration (+101 nodes collapsed)
constructor_declaration (+22 nodes collapsed)
line_comment "// public to call it from unit tests"
method_declaration (+254 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration
modifiers
private "private"
static "static"
integral_type
int "int"
identifier "parseDisplayFlags"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "text"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Pattern"
variable_declarator
identifier "regex"
= "="
method_invocation
identifier "Pattern"
. "."
identifier "compile"
argument_list
( "("
string_literal
" "\""
string_fragment "FLAG_[A-Z_]+"
" "\""
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "text"
== "=="
null_literal "null"
) ")"
block
{ "{"
return_statement
return "return"
decimal_integer_literal "0"
; ";"
} "}"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "flags"
= "="
decimal_integer_literal "0"
; ";"
local_variable_declaration
type_identifier "Matcher"
variable_declarator
identifier "m"
= "="
method_invocation
identifier "regex"
. "."
identifier "matcher"
argument_list
( "("
identifier "text"
) ")"
; ";"
while_statement (+75 nodes collapsed)
return_statement
return "return"
identifier "flags"
; ";"
} "}"
method_declaration (+299 nodes collapsed)
method_declaration (+78 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+72 nodes collapsed)
method_declaration (+144 nodes collapsed)
method_declaration (+63 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+381 nodes collapsed)
method_declaration (+101 nodes collapsed)
} "}"