Class VerveineJParser

java.lang.Object
fr.inria.verveine.extractor.java.VerveineJParser

public class VerveineJParser extends Object
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 Details

    • options

      public VerveineJOptions options
    • jdtParser

      protected org.eclipse.jdt.core.dom.ASTParser jdtParser
      Java parser, provided by JDT
    • famixRepo

      protected ch.akuhn.fame.Repository famixRepo
      Famix repository where the entities are stored
  • Constructor Details

    • VerveineJParser

      public VerveineJParser()
  • Method Details

    • configure

      public void configure(String[] args)
    • getMyLanguage

      protected SourceLanguage getMyLanguage()
    • parse

      public void parse()
    • verifyJDTParsedSources

      protected void verifyJDTParsedSources(String[] sourceFiles, FamixRequestor requestor)
    • 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

      protected void expandPackageName(Package ns)
    • linkToExisting

      protected boolean linkToExisting()
    • exportModel

      public void exportModel()
      Outputs repository to a file
    • exportModel

      public void exportModel(String outputFile)
    • exportModel

      public void exportModel(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. The SourceLanguage entity is the one returned by getMyLgge().
      Parameters:
      output -
    • listAll

      public <T extends Entity> Collection<T> listAll(Class<T> fmxClass)
      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)