declaration_list
{ "{"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_FILES"
= "="
integer "1"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_DOT_FILES"
= "="
integer "2"
; ";"
const_declaration
visibility_modifier
public "public"
const "const"
const_element
name "IGNORE_VCS_IGNORED_FILES"
= "="
integer "4"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "mode"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "names"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notNames"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "exclude"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "filters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "pruneFilters"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "depths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "sizes"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "followLinks"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "reverseSorting"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
union_type
named_type
qualified_name
\ "\\"
name "Closure"
| "|"
primitive_type
int "int"
| "|"
primitive_type "false"
property_element
variable_name
$ "$"
name "sort"
= "="
boolean "false"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
int "int"
property_element
variable_name
$ "$"
name "ignore"
= "="
integer "0"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dirs"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "dates"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "iterators"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "contains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notContains"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "paths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
array "array"
property_element
variable_name
$ "$"
name "notPaths"
= "="
array_creation_expression
[ "["
] "]"
; ";"
property_declaration
visibility_modifier
private "private"
primitive_type
bool "bool"
property_element
variable_name
$ "$"
name "ignoreUnreadableDirs"
= "="
boolean "false"
; ";"
property_declaration (+69 nodes collapsed)
method_declaration (+33 nodes collapsed)
comment "/**\n * Creates a new Finder.\n */"
method_declaration (+25 nodes collapsed)
comment "/**\n * Restricts the matching to directories only.\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Restricts the matching to files only.\n *\n "...
method_declaration (+38 nodes collapsed)
comment "/**\n * Adds tests for the directory depth.\n *\n *"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds tests for file dates (last modified).\n *"...
method_declaration (+71 nodes collapsed)
comment "/**\n * Adds rules that files must match.\n *\n * Y"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that files must not match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests that file contents must not match.\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must match.\n *\n "...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds rules that filenames must not match.\n *\n"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Adds tests for file sizes.\n *\n * $fin"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Excludes directories.\n *\n * Directories p"...
method_declaration (+61 nodes collapsed)
comment "/**\n * Excludes \"hidden\" directories and files (starting"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces the finder to ignore version control direc"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Forces Finder to obey .gitignore and ignore files"...
method_declaration (+74 nodes collapsed)
comment "/**\n * Adds VCS patterns.\n *\n * @see ignoreVCS()"...
method_declaration (+84 nodes collapsed)
comment "/**\n * Sorts files and directories by an anonymous funct"...
method_declaration (+41 nodes collapsed)
comment "/**\n * Sorts files and directories by extension.\n *\n"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by name.\n *\n "...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by name case insensit"...
method_declaration (+52 nodes collapsed)
comment "/**\n * Sorts files and directories by size.\n *\n "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by type (directories "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last accessed "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Reverses the sorting.\n *\n * @return $this"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Sorts files and directories by the last inode cha"...
method_declaration (+34 nodes collapsed)
comment "/**\n * Sorts files and directories by the last modified "...
method_declaration (+34 nodes collapsed)
comment "/**\n * Filters the iterator with an anonymous function.\n"...
method_declaration (+80 nodes collapsed)
comment "/**\n * Forces the following of symlinks.\n *\n * @"...
method_declaration (+31 nodes collapsed)
comment "/**\n * Tells finder to ignore unreadable directories.\n "...
method_declaration (+41 nodes collapsed)
comment "/**\n * Searches files and directories which match define"...
method_declaration (+263 nodes collapsed)
comment "/**\n * Returns an Iterator for the current Finder config"...
method_declaration (+399 nodes collapsed)
comment "/**\n * Appends an existing set of files/directories to t"...
method_declaration
visibility_modifier
public "public"
function "function"
name "append"
formal_parameters
( "("
simple_parameter
primitive_type "iterable"
variable_name
$ "$"
name "iterator"
) ")"
: ":"
named_type
name "static"
compound_statement
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
variable_name
$ "$"
name "iterator"
instanceof "instanceof"
qualified_name
\ "\\"
name "IteratorAggregate"
) ")"
compound_statement (+25 nodes collapsed)
else_if_clause (+32 nodes collapsed)
else_if_clause
elseif "elseif"
parenthesized_expression
( "("
function_call_expression
name "is_iterable"
arguments
( "("
argument
variable_name
$ "$"
name "iterator"
) ")"
) ")"
compound_statement any 2:1
{ "{" any 2:1
expression_statement
assignment_expression
variable_name
$ "$"
name "it"
= "="
object_creation_expression
new "new"
qualified_name
\ "\\"
name "ArrayIterator"
arguments
( "("
) ")"
; ";"
foreach_statement (+69 nodes collapsed)
expression_statement
assignment_expression
subscript_expression
member_access_expression
variable_name
$ "$"
name "this"
-> "->"
name "iterators"
[ "["
] "]"
= "="
variable_name
$ "$"
name "it"
; ";"
} "}" any 2:1
else_clause
else "else"
compound_statement any 2:1
{ "{" any 2:1
expression_statement
throw_expression
throw "throw"
object_creation_expression
new "new"
qualified_name
\ "\\"
name "InvalidArgumentException"
arguments
( "("
argument
string
' "'"
string_content "Finder::append() method wrong argument type."
' "'"
) ")"
; ";"
} "}" any 2:1
return_statement
return "return"
variable_name
$ "$"
name "this"
; ";"
} "}"
comment "/**\n * Check if any results were found.\n */"
method_declaration (+42 nodes collapsed)
comment "/**\n * Counts all the results collected by the iterators"...
method_declaration (+32 nodes collapsed)
method_declaration (+944 nodes collapsed)
comment "/**\n * Normalizes given directory names by removing trai"...
method_declaration (+110 nodes collapsed)
} "}"