SDA SE WikiSoftware Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Represents the implementation of an interface by a class.
#class: classT
ID of the class.
#interface: typeRefT, parameterizedTypeT
ID of a typeRefT or a parameterizedTypeT referencing an interface implemented by the class.
class HelloUniverse implements Hello {
...
}
public interface Hello {
...
}
classT(#id,_,'HelloUniverse',_). implementsT(#id, #TypeRef). typeRefT(#TypeRef, #id, #id, #interface). classT(#interface,_,'Hello',_).
ast_relation('Java',implementsT,[
ast_arg(sub, mult(1,1,no ), id, [classT]),
ast_arg(super, mult(1,1,no ), id, [typeRefT, parameterizedTypeT])
]).