All Superinterfaces:
GlobalTypeLookup
All Known Subinterfaces:
TransformationContext, ValidationContext

@Beta public interface TypeLookup extends GlobalTypeLookup
Facilities to lookup Java type declarations generated within the currently processed CompilationUnit as well as on the classpath of that CompilationUnit.
Author:
Sven Efftinge
  • Method Details

    • findClass

      MutableClassDeclaration findClass(String qualifiedName)
      Parameters:
      qualifiedName - the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
      Returns:
      the MutableClassDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit
    • findInterface

      MutableInterfaceDeclaration findInterface(String qualifiedName)
      Parameters:
      qualifiedName - the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
      Returns:
      the MutableInterfaceDeclaration with given qualified name, or null if no such interface declaration is contained in the currently processed CompilationUnit
    • findEnumerationType

      MutableEnumerationTypeDeclaration findEnumerationType(String qualifiedName)
      Parameters:
      qualifiedName - the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
      Returns:
      the MutableEnumerationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit
    • findAnnotationType

      MutableAnnotationTypeDeclaration findAnnotationType(String qualifiedName)
      Parameters:
      qualifiedName - the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
      Returns:
      the MutableAnnotationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit