Module org.eclipse.xtend.lib.macro
Interface SourceTypeLookup
- All Known Subinterfaces:
RegisterGlobalsContext
@Beta
public interface SourceTypeLookup
Facilities to lookup Xtend type declarations declared within the currently
processed
CompilationUnit.-
Method Summary
Modifier and TypeMethodDescriptionfindSourceAnnotationType(String qualifiedName) findSourceClass(String qualifiedName) findSourceEnumerationType(String qualifiedName) findSourceInterface(String qualifiedName)
-
Method Details
-
findSourceClass
- 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
- 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
- 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
- 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
-