Interface TypeLookup
-
- All Superinterfaces:
GlobalTypeLookup
- All Known Subinterfaces:
TransformationContext,ValidationContext
@Beta public interface TypeLookup extends GlobalTypeLookup
Facilities to lookup Java type declarations generated within the currently processedCompilationUnitas well as on the classpath of thatCompilationUnit.- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableAnnotationTypeDeclarationfindAnnotationType(java.lang.String qualifiedName)MutableClassDeclarationfindClass(java.lang.String qualifiedName)MutableEnumerationTypeDeclarationfindEnumerationType(java.lang.String qualifiedName)MutableInterfaceDeclarationfindInterface(java.lang.String qualifiedName)-
Methods inherited from interface org.eclipse.xtend.lib.macro.services.GlobalTypeLookup
findTypeGlobally, findTypeGlobally
-
-
-
-
Method Detail
-
findClass
MutableClassDeclaration findClass(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
MutableClassDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
findInterface
MutableInterfaceDeclaration findInterface(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
MutableInterfaceDeclarationwith given qualified name, ornullif no such interface declaration is contained in the currently processedCompilationUnit
-
findEnumerationType
MutableEnumerationTypeDeclaration findEnumerationType(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
MutableEnumerationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
findAnnotationType
MutableAnnotationTypeDeclaration findAnnotationType(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
MutableAnnotationTypeDeclarationwith given qualified name, ornullif no such class declaration is contained in the currently processedCompilationUnit
-
-