Simple common strategies for PHP
Strategy details
|
ATerm
|
generic-procedural-topdown(Strategy s1, Strategy s2)
|
File
|
simple.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
Strategy
s1
|
s1 The strategy to be applied to each term
|
Strategy
s2
|
s2 The strategy to be called when going into children
|
|
Generic version of prodecural topdown
|
|
ATerm
|
isClassDecl
|
Different match functions for different constructors
|
|
ATerm
|
php-collect-inclusion(Strategy s)
|
File
|
simple.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
Strategy
s
|
s The strategy to try on the terms
|
|
Collects all the terms that succeed a given strategy. Is compareablewith the normal collect, but this strategy goes into included files whenthey are found.
|
|
ATerm
|
procedural-occurrences(Strategy s)
|
Counting occurences of everything Const that is in the given strategy,without going into function- or class- or interface-definitions
|
|
ATerm
|
procedural-topdown(Strategy s)
|
File
|
simple.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
Strategy
s
|
s The strategy to be applied to each term
|
|
Topdown without going into class- or function-declerations.
|
|
ATerm
|
procedural-topdown-with-inclusion(Strategy s)
|
Topdown with going into inclusion. This will try to extractthe AST from the enivironment and apply the strategy to it.Stores the new AST in the environment. This strategy will not go into class- of function-declerations.
Note: This strategy does _NOT_ take the '_once' into account.
|
|
ATerm
|
topdown-with-inclusion(Strategy s)
|
Topdown with going into inclusion. This will try to extractthe AST from the enivironment and apply the strategy to it.Stores the new AST in the environment.Note that is tries to extract the AST. If there are no inclusions made thisstrategy will behave like topdown.
Note: This strategy does _NOT_ take the '_once' into account.
|
|