Schnittstelle INameEnvironmentExtension

Alle Superschnittstellen:
INameEnvironment
Alle bekannten Unterschnittstellen:
INameEnvironmentWithProgress
Alle bekannten Implementierungsklassen:
CancelableNameEnvironment

public interface INameEnvironmentExtension extends INameEnvironment
The name environment provides a callback API that the compiler can use to look up types, compilation units, and packages in the current environment. The name environment is passed to the compiler on creation. This name environment adds a method to switch on/off the search for secondary types. Refer findType(char[], char[][], boolean).
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes)
     
    findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes, char[] moduleName)
    Find a type named in the package .

    Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.INameEnvironment

    cleanup, findType, findType, isPackage
  • Methodendetails

    • findType

      NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes, char[] moduleName)
      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. The flag can be used to switch on/off the search for secondary types. This is useful because the search for secondary types may by very expensive regarding the performance and in many cases it isn't necessary to search for secondary types.
      Parameter:
      typeName - type to find
      packageName - package of the searched type
      searchWithSecondaryTypes - flag to switch on/off the search for secondary types
      moduleName - the name of the module to search in, or one of ModuleBinding.ANY, ModuleBinding.UNNAMED
      Gibt zurück:
      NameEnvironmentAnswer
    • findType

      default NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, boolean searchWithSecondaryTypes)