source-class

File source-class.str
Author Martin Bravenboer <martin@cs.uu.nl>
Since unknown

Source Class




Statistics


General
Lines of code 320
Stratego
Module number 1 (100% documented)
Constructor number 1 (0% documented)
Overlay number 0
Strategy number 23 (91% documented)
Rule number 0
DynamicRule number 0



Constructor summary


JavaSourceClass(ATerm ) n/a source-class.str

Strategy summary


get-access n/a source-class.str
get-access-of-default-constructor n/a source-class.str
get-ast Returns the AST of this source class source-class.str
get-compilation-unit n/a source-class.str
get-default-constructor n/a source-class.str
get-formal-type-parameters n/a source-class.str
get-modifiers n/a source-class.str
get-package n/a source-class.str
get-reference-ast Returns the Reference AST of this source class source-class.str
get-superclass-as-type n/a source-class.str
get-superinterfaces-as-type n/a source-class.str
init-declared-member-type-table Initializes the declared member classes table of a source class source-class.str
init-get-declared-constructor-list Initializes the declared constructors list of the source class source-class.str
init-get-declared-field-list Initializes the field table of a source class source-class.str
init-get-declared-method-list Initializes the declared method table of a source class source-class.str
instanceof-JavaClass Succeeds if the current term is an instance of a Java class source-class.str
instanceof-JavaSourceClass Succeeds if the current term is an instance of Java source class source-class.str
is-interface Succeeds if this class is an interface source-class.str
is-static Succeeds if the class is a static (inner) class source-class.str
new-source-class(ATerm simple-name) Constructs a new source class source-class.str
set-ast(ATerm ast) Initializes the RefAST of this SourceClass from the given AST source-class.str
set-compilation-unit(ATerm cu) n/a source-class.str
set-reference-ast(ATerm ref-ast) n/a source-class.str



Strategy details


ATerm get-access
File source-class.str
Author unknown
Since unknown
 

No information available.


todo This is the same for all source members. Generalize?
type SourceClass Object -> Access Modifier

 
ATerm get-ast
File source-class.str
Author unknown
Since unknown
 

Returns the AST of this source class.


type SourceClass Object -> TypeDec

 
ATerm get-compilation-unit
File source-class.str
Author unknown
Since unknown
 

No information available.


type SourceClass Object -> CompilationUnit Object

 
ATerm get-default-constructor
File source-class.str
Author unknown
Since unknown
 

No information available.


todo Default constructor for enum type must have private access.
todo The constructor should not be created again and again, since it is not garbage collected.
todo DRY-203: No super invocation for java.lang.Object source file.
todo DRY-202: Set the appropiate access modifiers (see 8.8.9)

 
ATerm get-formal-type-parameters
File source-class.str
Author unknown
Since unknown
 

No information available.


type SourceClass Object -> List(TypeParam)

 
ATerm get-package
File source-class.str
Author unknown
Since unknown
 

No information available.


todo Maybe move the fallback to the declaring class' compilation-unit into get-compilation-unit.
type SourceClass Object -> Package Object

 
ATerm get-reference-ast
File source-class.str
Author unknown
Since unknown
 

Returns the Reference AST of this source class.


type SourceClass Object -> ReferenceAST(TypeDec)

 
ATerm get-superclass-as-type
File source-class.str
Author unknown
Since unknown
 

No information available.


type SourceClass Object -> Source Type
todo java.lang.Object has no superclass.

 
ATerm get-superinterfaces-as-type
File source-class.str
Author unknown
Since unknown
 

No information available.


type SourceClass Object -> List(Source Type)

 
ATerm init-declared-member-type-table
File source-class.str
Author unknown
Since unknown
 

Initializes the declared member classes table of a source class.


type SourceClass Object -> SourceClass Object

 
ATerm init-get-declared-constructor-list
File source-class.str
Author unknown
Since unknown
 

Initializes the declared constructors list of the source class.


type SourceClass Object -> List(SourceConstructor Object)

 
ATerm init-get-declared-field-list
File source-class.str
Author unknown
Since unknown
 

Initializes the field table of a source class.


todo A fielddec can declare multiple variables. How should this be represented in the table?
type SourceClass Object -> List(SourceClass Object)

 
ATerm init-get-declared-method-list
File source-class.str
Author unknown
Since unknown
 

Initializes the declared method table of a source class.


type SourceClass Object -> List(SourceMethod Object)

 
ATerm instanceof-JavaClass
File source-class.str
Author unknown
Since unknown
 

Succeeds if the current term is an instance of a Java class.This alternative declares a JavaSourceClass to be a JavaClass.



 
ATerm instanceof-JavaSourceClass
File source-class.str
Author unknown
Since unknown
 

Succeeds if the current term is an instance of Java source class



 
ATerm is-interface
File source-class.str
Author unknown
Since unknown
 

Succeeds if this class is an interface.



 
ATerm is-static
File source-class.str
Author unknown
Since unknown
 

Succeeds if the class is a static (inner) class.



 
ATerm new-source-class(ATerm simple-name)
File source-class.str
Author unknown
Since unknown
 

Constructs a new source class.


type _ -> Class

 
ATerm set-ast(ATerm ast)
File source-class.str
Author unknown
Since unknown
 
Parameters
ATerm ast TypeDec

Initializes the RefAST of this SourceClass from the given AST.


type SourceClass Object -> SourceClass Object

 
ATerm set-compilation-unit(ATerm cu)
File source-class.str
Author unknown
Since unknown
 
Parameters
ATerm cu CompilationUnit Object

No information available.


type SourceClass Object -> SourceClass Object

 
ATerm set-reference-ast(ATerm ref-ast)
File source-class.str
Author unknown
Since unknown
 
Parameters
ATerm ref-ast ReferenceAST(TypeDec)

No information available.


type SourceClass Object -> SourceClass Object