Interface SourceTypeLookup

  • All Known Subinterfaces:
    RegisterGlobalsContext

    @Beta
    public interface SourceTypeLookup
    Facilities to lookup Xtend type declarations declared within the currently processed CompilationUnit.
    Noimplement:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • findSourceClass

        ClassDeclaration findSourceClass​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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