Klasse StatefulNameEnvironment

java.lang.Object
org.aspectj.ajdt.internal.core.builder.StatefulNameEnvironment
Alle implementierten Schnittstellen:
IModuleAwareNameEnvironment, INameEnvironment

public class StatefulNameEnvironment extends Object implements IModuleAwareNameEnvironment
  • Konstruktordetails

  • Methodendetails

    • cleanup

      public void cleanup()
      Beschreibung aus Schnittstelle kopiert: INameEnvironment
      This method cleans the environment. It is responsible for releasing the memory and freeing resources. Passed that point, the name environment is no longer usable. A name environment can have a long life cycle, therefore it is the responsibility of the code which created it to decide when it is a good time to clean it up.
      Angegeben von:
      cleanup in Schnittstelle INameEnvironment
    • findType

      public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName)
      Beschreibung aus Schnittstelle kopiert: INameEnvironment
      Find a type named in the package . Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. The default package is indicated by char[0][]. It is known that the package containing the type exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.
      Angegeben von:
      findType in Schnittstelle IModuleAwareNameEnvironment
      Angegeben von:
      findType in Schnittstelle INameEnvironment
    • findType

      public NameEnvironmentAnswer findType(char[][] compoundName)
      Beschreibung aus Schnittstelle kopiert: INameEnvironment
      Find a type with the given compound name. Answer the binary form of the type if it is known to be consistent. Otherwise, answer the compilation unit which defines the type or null if the type does not exist. Types in the default package are specified as {{typeName}}. It is unknown whether the package containing the type actually exists. NOTE: This method can be used to find a member type using its internal name A$B, but the source file for A is answered if the binary file is inconsistent.
      Angegeben von:
      findType in Schnittstelle IModuleAwareNameEnvironment
      Angegeben von:
      findType in Schnittstelle INameEnvironment
    • isPackage

      public boolean isPackage(char[][] parentPackageName, char[] packageName)
      Beschreibung aus Schnittstelle kopiert: INameEnvironment
      Answer whether packageName is the name of a known subpackage inside the package parentPackageName. A top level package is found relative to null. The default package is always assumed to exist. For example: isPackage({{java}, {awt}}, {event}); isPackage(null, {java});
      Angegeben von:
      isPackage in Schnittstelle IModuleAwareNameEnvironment
      Angegeben von:
      isPackage in Schnittstelle INameEnvironment
    • update

      public void update(Map<String,File> classNameToFileMap, Set<String> added)
      Needs to be told about changes. The 'added' set is a subset of classNameToFileMap consisting of just those names added during this build - to reduce any impact on incremental compilation times.
    • findType

      public NameEnvironmentAnswer findType(char[][] compoundName, char[] moduleName)
      Angegeben von:
      findType in Schnittstelle IModuleAwareNameEnvironment
    • findType

      public NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, char[] moduleName)
      Beschreibung aus Schnittstelle kopiert: IModuleAwareNameEnvironment
      Answer a type identified by the given names. moduleName may be one of the special names from ModuleBinding (ANY, ANY_NAMED, UNNAMED).
      Angegeben von:
      findType in Schnittstelle IModuleAwareNameEnvironment
    • hasCompilationUnit

      public boolean hasCompilationUnit(char[][] qualifiedPackageName, char[] moduleName, boolean checkCUs)
      Beschreibung aus Schnittstelle kopiert: IModuleAwareNameEnvironment
      Answer whether the given package (within the given module) contains any compilation unit.
      Angegeben von:
      hasCompilationUnit in Schnittstelle IModuleAwareNameEnvironment
      Parameter:
      qualifiedPackageName -
      checkCUs - - if true, check contained Compilation Units for a matching package declaration
      Gibt zurück:
      true iff the package contains at least one compilation unit.
    • getModule

      public IModule getModule(char[] moduleName)
      Beschreibung aus Schnittstelle kopiert: IModuleAwareNameEnvironment
      Get the module with the given name, which must denote a named module.
      Angegeben von:
      getModule in Schnittstelle IModuleAwareNameEnvironment
    • applyModuleUpdates

      public void applyModuleUpdates(IUpdatableModule module, IUpdatableModule.UpdateKind kind)
      Beschreibung aus Schnittstelle kopiert: IModuleAwareNameEnvironment
      Ask the name environment to perform any updates (add-exports or add-reads) to the given module.
      Angegeben von:
      applyModuleUpdates in Schnittstelle IModuleAwareNameEnvironment
      Parameter:
      module - the compiler representation of the module to updates
      kind - selects what kind of updates should be performed
    • getUniqueModulesDeclaringPackage

      public char[][] getUniqueModulesDeclaringPackage(char[][] packageName, char[] moduleName)
      Angegeben von:
      getUniqueModulesDeclaringPackage in Schnittstelle IModuleAwareNameEnvironment
    • getAllAutomaticModules

      public char[][] getAllAutomaticModules()
      Angegeben von:
      getAllAutomaticModules in Schnittstelle IModuleAwareNameEnvironment
    • getModulesDeclaringPackage

      public char[][] getModulesDeclaringPackage(char[][] arg0, char[] arg1)
      Angegeben von:
      getModulesDeclaringPackage in Schnittstelle IModuleAwareNameEnvironment
    • listPackages

      public char[][] listPackages(char[] arg0)
      Beschreibung aus Schnittstelle kopiert: IModuleAwareNameEnvironment
      Lists all packages in the module identified by the given, real module name (i.e., this method is implemented only for IModuleAwareNameEnvironment.LookupStrategy.Named).
      Angegeben von:
      listPackages in Schnittstelle IModuleAwareNameEnvironment
      Parameter:
      arg0 -
      Gibt zurück:
      array of flat, dot-separated package names