Class Util

java.lang.Object
fr.inria.verveine.extractor.java.utils.Util

public class Util extends Object
  • Field Details

    • metamodel

      public static ch.akuhn.fame.MetaRepository metamodel
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • stringForAnonymousName

      public static String stringForAnonymousName(String anonymousSuperTypeName, EntityStack context)
      helper to "normalize" an anonymous type name
    • jdtTypeName

      public static String jdtTypeName(org.eclipse.jdt.core.dom.Type jdtType)
      Helper to compute the name of a JDT Type
    • recursivelySetIsStub

      public static <T extends TCanBeStub & TNamedEntity> void recursivelySetIsStub(T fmx, boolean isStub)
      sets fmx isStub property to isStub and goes up recusively to all parent entities
    • getOwner

      public static <T extends TNamedEntity, X extends TNamedEntity> X getOwner(T entity)
    • typeNameFromSourceFile

      public static String typeNameFromSourceFile(String sourceFileName)
      The name of an implicitly declared class is not written in the source. The JLS gives it the name of its compilation unit, which is also what the compiler uses for the class file.
    • capitalizeString

      public static String capitalizeString(String str)
    • traceUnknownElementError

      public static void traceUnknownElementError(ch.akuhn.fame.internal.RepositoryVisitor.UnknownElementError err)