Interface SourceTypeLookup

All Known Subinterfaces:
RegisterGlobalsContext

@Beta public interface SourceTypeLookup
Facilities to lookup Xtend type declarations declared within the currently processed CompilationUnit.
  • Method Details

    • findSourceClass

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

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

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

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