Class VerveineJParser
java.lang.Object
fr.inria.verveine.extractor.java.VerveineJParser
A batch parser inspired from org.eclipse.jdt.internal.compiler.batch.Main (JDT-3.6)
run with:
java -cp lib/org.eclipse.jdt.core_3.6.0.v_A48.jar:../Fame:/usr/local/share/eclipse/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar:/usr/local/share/eclipse/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar:/usr/local/share/eclipse/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar:/usr/local/share/eclipse/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar:/usr/local/share/eclipse/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar:/usr/local/share/eclipse/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar:/usr/local/share/eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar:../Fame/lib/akuhn-util-r28011.jar:lib/fame.jar:bin eu.synectique.verveine.extractor.java.VerveineJParser [files|directory]_to_parse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ch.akuhn.fame.RepositoryFamix repository where the entities are storedprotected org.eclipse.jdt.core.dom.ASTParserJava parser, provided by JDT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAs explained in EntityDictionary, Namespaces are created with their fully qualified name.voidprotected voidprotected voidvoidOutputs repository to a filevoidexportModel(OutputStream output) Outputs the repository to an opened Stream according to the format in options also add to it a SourceLanguage entity if there is none.voidexportModel(String outputFile) ch.akuhn.fame.Repositoryprotected SourceLanguageprotected voidhandleJDTFailure(String[] sourceFiles, FamixRequestor requestor, IllegalStateException error) protected boolean<T extends Entity>
Collection<T> Returns a Collection of all FAMIXEntities in the repository of the given fmxClassvoidparse()voidsetFamixRepo(ch.akuhn.fame.Repository famixRepo) protected voidverifyJDTParsedSources(String[] sourceFiles, FamixRequestor requestor)
-
Field Details
-
options
-
jdtParser
protected org.eclipse.jdt.core.dom.ASTParser jdtParserJava parser, provided by JDT -
famixRepo
protected ch.akuhn.fame.Repository famixRepoFamix repository where the entities are stored
-
-
Constructor Details
-
VerveineJParser
public VerveineJParser()
-
-
Method Details
-
configure
-
getMyLanguage
-
parse
public void parse() -
verifyJDTParsedSources
-
handleJDTFailure
protected void handleJDTFailure(String[] sourceFiles, FamixRequestor requestor, IllegalStateException error) -
compressPackagesNames
protected void compressPackagesNames()As explained in EntityDictionary, Namespaces are created with their fully qualified name. We need now to give them their simple name -
expandPackagesNames
protected void expandPackagesNames()- See Also:
-
expandPackageName
-
linkToExisting
protected boolean linkToExisting() -
exportModel
public void exportModel()Outputs repository to a file -
exportModel
-
exportModel
Outputs the repository to an opened Stream according to the format in options also add to it a SourceLanguage entity if there is none. The SourceLanguage entity is the one returned by getMyLgge().- Parameters:
output-
-
listAll
Returns a Collection of all FAMIXEntities in the repository of the given fmxClass -
getFamixRepo
public ch.akuhn.fame.Repository getFamixRepo() -
setFamixRepo
public void setFamixRepo(ch.akuhn.fame.Repository famixRepo)
-