Module org.eclipse.xtend.lib.macro
Interface TypeLookup
- All Superinterfaces:
GlobalTypeLookup
- All Known Subinterfaces:
TransformationContext,ValidationContext
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 Summary
Modifier and TypeMethodDescriptionfindAnnotationType(String qualifiedName) findEnumerationType(String qualifiedName) findInterface(String qualifiedName) Methods inherited from interface org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
findTypeGlobally, findTypeGlobally
-
Method Details
-
findClass
- Parameters:
qualifiedName- the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).- Returns:
- the
MutableClassDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
findInterface
- Parameters:
qualifiedName- the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).- Returns:
- the
MutableInterfaceDeclarationwith given qualified name, ornullif no such interface declaration is contained in the currently processedCompilationUnit
-
findEnumerationType
- Parameters:
qualifiedName- the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).- Returns:
- the
MutableEnumerationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
findAnnotationType
- Parameters:
qualifiedName- the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).- Returns:
- the
MutableAnnotationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-