Abstract Java constructor
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.
|
todo
|
Include type parameters one way or another?
|
|
|
|
|
ATerm
|
get-formal-parameter-types-in-class(ATerm inclass)
|
No information available.
|
todo
|
This method is rather useless. Should it be there?
|
|
|
|
|
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.
|
todo
|
Raw types and type erasure.
|
|
|
|
|
ATerm
|
get-name
|
Returns the ConstructorName of this method.
|
todo
|
Hacky: introduce a ConstructorName.
|
|
type
|
Constructor Object -> ConstructorName
|
|
|
|
|
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.
|
|
|