SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


fileT(#id, #package, 'filename', [#def_1,...])

This PEF is outdated. See the notes on migrating to 2.6.0
See compilationUnitT and fileS for current documentation.

Represents a java source file (eAST compilation unit).
A location in the enclosing project is specified in a projectlocationt fact.
#id:
the unique ID assigned to this fact.

#package:
packaget, null
ID of the package declaration of this compilation unit.

'filename':
path to this file relative to the eclipse workspace including project name and source folders, e.g. /Project/src/pckg/filename.ext

[#def_1,…]:
importt, classdeft
list of IDs for other facts representing the top-level type declarations nodes.

E. g.:
fileT(0, 34, L:\org\cs3\pl\astvisitor\codetest1.java', [45,57])).

Sample Java Source

class MyException extends Exception {
	public MyException(String string) {
		System.out.println(string);
	}
}

Its PEF Representation

fileT(#id, 'null', '/ForJT/src/MyException.java', [#def_1]).
classDefT(#def_1, 'null', 'MyException', ...).
research/jtransformer/api/java/pefs/old/filet.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2025