Interface SourceTypeLookup
-
- All Known Subinterfaces:
RegisterGlobalsContext
@Beta public interface SourceTypeLookupFacilities to lookup Xtend type declarations declared within the currently processedCompilationUnit.- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationTypeDeclarationfindSourceAnnotationType(java.lang.String qualifiedName)ClassDeclarationfindSourceClass(java.lang.String qualifiedName)EnumerationTypeDeclarationfindSourceEnumerationType(java.lang.String qualifiedName)InterfaceDeclarationfindSourceInterface(java.lang.String qualifiedName)
-
-
-
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
ClassDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
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
InterfaceDeclarationwith given qualified name, ornullif no such interface declaration is contained in the currently processedCompilationUnit
-
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
EnumerationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
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
AnnotationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
-