file-abstractions

File file-abstractions.str
Author unknown
Since unknown
No information available.




Statistics


General
Lines of code 180
Stratego
Module number 1 (0% documented)
Constructor number 0
Overlay number 4 (0% documented)
Strategy number 19 (68% documented)
Rule number 0
DynamicRule number 0



Overlay summary


Execute n/a file-abstractions.str
Existence n/a file-abstractions.str
Read n/a file-abstractions.str
Write n/a file-abstractions.str

Strategy summary


abspath Return the absolute path of a pathname file-abstractions.str
can-create-file n/a file-abstractions.str
can-execute-file n/a file-abstractions.str
can-read-file n/a file-abstractions.str
can-write-file n/a file-abstractions.str
file-exists n/a file-abstractions.str
file-newer n/a file-abstractions.str
find-file(ATerm ext, ATerm path) Finds one file with a specific file extension in a list of directories file-abstractions.str
find-file(ATerm ext) n/a file-abstractions.str
find-file(Strategy mkpath, Strategy ext) Finds one file with a specific file extension in a list of directories file-abstractions.str
find-in-path(Strategy strict, ATerm path) Finds a file in a list of directories (a path) file-abstractions.str
find-in-path(ATerm path) Finds a file in a list of directories (a path) file-abstractions.str
find-in-path n/a file-abstractions.str
is-executable n/a file-abstractions.str
is-readable n/a file-abstractions.str
is-writable n/a file-abstractions.str



Strategy details


ATerm abspath
File file-abstractions.str
Author unknown
Since 0.9.4
 

Return the absolute path of a pathname.


type String -> String

 
ATerm can-create-file
File file-abstractions.str
Author unknown
Since unknown
 

No information available.


type String -> String

 
ATerm can-execute-file
File file-abstractions.str
Author unknown
Since unknown
 

No information available.


type String -> String

 
ATerm can-read-file
File file-abstractions.str
Author unknown
Since unknown
 

No information available.


type String -> String

 
ATerm can-write-file
File file-abstractions.str
Author unknown
Since unknown
 

No information available.


type String -> String

 
ATerm file-exists
File file-abstractions.str
Author unknown
Since unknown
 

No information available.


type String -> String

 
ATerm find-file(ATerm ext, ATerm path)
File file-abstractions.str
Author unknown
Since unknown
 
Parameters
ATerm ext should build the file extension as a string.

Finds one file with a specific file extension in a list of directories.

This strategy operates on a tuple (f, [d*]). The one file that will besearched for is determined by the basename of f and the requested fileextension.Example:<find-file(!"rtree")> ("file.str", ["."])searches for file.rtree in the current dir.



 
ATerm find-file(Strategy mkpath, Strategy ext)
File file-abstractions.str
Author unknown
Since unknown
 
Parameters
Strategy mkpath should build a list of paths in which the search is performed.
Strategy ext should build the file extension as a string.

Finds one file with a specific file extension in a list of directories.

Differs from find-file/(1,0) in that it exits with fatal error if file isnot found.



 
ATerm find-in-path(Strategy strict, ATerm path)
File file-abstractions.str
Author unknown
Since unknown
 

Finds a file in a list of directories (a path).

<find-path(strict|path)> f looks for a file with name f in the list ofdirectories path. If the file is not found the behaviour depends on thestrategy strict, if it succeeds a fatal-error is flagged, otherwise thestrategy just fails.

Example (when run in strategoxt root):<find-in-path(id|["ssl/spec","ssl/tests"])> "file.str" => "ssl/spec/file.str"



 
ATerm find-in-path(ATerm path)
File file-abstractions.str
Author unknown
Since unknown
 
Parameters
ATerm path should build a list of paths in which the search is performed.

Finds a file in a list of directories (a path).

Differs from find-in-path/(0,0) in that it exits with fatal-error if file isnot found.