Imports

File Imports.str
Author Martin Bravenboer <martin@cs.uu.nl>
Since unknown

Declare import declarations.




Statistics


General
Lines of code 104
Stratego
Module number 1 (100% documented)
Constructor number 0
Overlay number 0
Strategy number 3 (100% documented)
Rule number 1 (100% documented)
DynamicRule number 4 (0% documented)



Strategy summary


declare-imported-fields(Strategy cont) Declare imported static fields Imports.str
declare-imported-types(Strategy cont) The scope of a type imported by a type import declaration is all the class and interface type declarations in the compilation unit in which the import declaration appears Imports.str
declare-type-helper n/a Imports.str

Rule summary


add-java-lang-imports Adds the java Imports.str



Strategy details


ATerm declare-imported-fields(Strategy cont)
File Imports.str
Author unknown
Since unknown
 

Declare imported static fields.



 
ATerm declare-imported-types(Strategy cont)
File Imports.str
Author unknown
Since unknown
 

The scope of a type imported by a type import declaration is all the class and interface type declarations in the compilation unit in which the import declaration appears. (7.5.1, page 161)

Single type imports shadow on demand imports.Single type imports shadow classes in this package.

On demand imports do not shadow type declarations of the package of compilation unit.


todo Work on the Object here?

 
ATerm declare-type-helper
File Imports.str
Author unknown
Since unknown
 

No information available.


type TypeName -> TypeName

 

Rule details


ATerm add-java-lang-imports
File Imports.str
Author unknown
Since unknown
 

Adds the java.lang imports to a CompilationUnit.


type _ -> List(ImportDec)