File | constructor.str |
Author | Martin Bravenboer <martin@cs.uu.nl> |
Since | unknown |
Abstract Java constructor
General | |
Lines of code | 89 |
Stratego | |
Module number | 1 (100% documented) |
Constructor number | 0 |
Overlay number | 0 |
Strategy number | 7 (100% documented) |
Rule number | 0 |
DynamicRule number | 0 |
Strategy summary |
||
get-canonical-name | Return name that uniquely identifiers a constructor | constructor.str |
get-formal-parameter-types-in-class(ATerm inclass) | n/a | constructor.str |
get-formal-parameter-types-in-type(ATerm intype) | Returns the formal parameter types of this constructor if this constructor is invoked as a member of the given type | constructor.str |
get-name | Returns the ConstructorName of this method | constructor.str |
instanceof-JavaConstructor | Succeeds if the current term is an instance of a Java constructor | constructor.str |
instanceof-JavaMember | Every Java constructor is a Java member | constructor.str |
is-fixed-arity-constructor | Succeeds if this constructor does not take a variable number of arguments | constructor.str |
Strategy details |
|||||||||||||||
ATerm | get-canonical-name | ||||||||||||||
Return name that uniquely identifiers a constructor. Note that the JLS does not define canonical names for constructors.We just use the same terminology for this unique constructor name, toavoid another kind of name.
|
|||||||||||||||
ATerm | get-formal-parameter-types-in-class(ATerm inclass) | ||||||||||||||
No information available.
|
|||||||||||||||
ATerm | get-formal-parameter-types-in-type(ATerm intype) | ||||||||||||||
Returns the formal parameter types of this constructor if this constructor is invokedas a member of the given type. If the constructor is not actually a member of the specified type, then this strategy will fail.
|
|||||||||||||||
ATerm | get-name | ||||||||||||||
Returns the ConstructorName of this method.
|
|||||||||||||||
ATerm | instanceof-JavaConstructor | ||||||||||||||
Succeeds if the current term is an instance of a Java constructor. Subclasses of Java constructor implement this strategy. |
|||||||||||||||
ATerm | instanceof-JavaMember | ||||||||||||||
Every Java constructor is a Java member. |
|||||||||||||||
ATerm | is-fixed-arity-constructor | ||||||||||||||
Succeeds if this constructor does not take a variable number of arguments. |
|||||||||||||||