importT(#id, #parent, #import)

Represents the import declaration.

In case of a Single Static Import Declaration and Static-Import-on-Demand Declaration the created importT(#id, , ) fact is acompanied by an additional modifierT(#id, 'static') fact.

Arguments

#id: id
the unique ID assigned to this fact.

#parent: compilationUnitT
ID of the compilation unit that contains this import declaration.

#import: packageT, classT, methodT, fieldT
ID of the import.

Sample Java Source

import java.io.IOException;

Its PEF Representation

importT(#id, #parentID, #importId).

AST Specification

ast_node_def('Java',importT,[
     ast_arg(id,      mult(1,1,no ), id,  [importT]),
     ast_arg(parent,  mult(1,1,no ), id,  [compilationUnitT]),
     ast_arg(import,  mult(1,1,no ), id,  [packageT, classT, methodT, fieldT])
]).
Last modified: 2014/12/03 13:36
*