Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
represents the instanceof expression.
#id: id
the unique ID assigned to this fact.
#parent: id
ID of the parent node.
#encl: methodT, constructorT, classInitializerT, fieldT
ID of the fact that represents the enclosing method.
#type: typeInst
the id of the reference to the right operand of this instanceof expression
#expression: expression
left operand of this instanceof expression
if (test instanceof TestChild) return;
ifT(#ifT_ID, #Parent, _, #Condition, #ThenPart, 'null'). typeTestT(#Condition, #ifT_ID, _, #typeref, #expression). identT(#expression, Condition, _, 'test', _). returnT(#ThenPart, ID, _, 'null').
ast_node_type_spec(typeTestT,[ ast_arg(id, mult(1,1,no ), id, [typeTestT]), ast_arg(parent, mult(1,1,no ), id, [id]), ast_arg(encl, mult(1,1,no ), id, [methodT, constructorT, classInitializerT, fieldT]), ast_arg(type, mult(1,1,no ), id, [type_inst]), ast_arg(expr, mult(1,1,no ), id, [expressionType]) ]).