Interface UpstreamTypeLookup
-
- All Known Subinterfaces:
RegisterGlobalsContext
@Beta public interface UpstreamTypeLookupFacilities to lookup of Java type declarations in upstream dependencies of the currentCompilationUnit. This means that types defined in the same project will not be found.- Since:
- 2.7
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypefindUpstreamType(java.lang.Class<?> clazz)TypefindUpstreamType(java.lang.String typeName)
-
-
-
Method Detail
-
findUpstreamType
Type findUpstreamType(java.lang.Class<?> clazz)
- Parameters:
clazz- the clazz representing the type to look up- Returns:
- the type with the same qualified name as the given
Classobject, ornullif that type couldn't be found on the compilation unit's upstream dependencies.
-
findUpstreamType
Type findUpstreamType(java.lang.String typeName)
- Parameters:
typeName- the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).- Returns:
- the type with the given qualified name, or
nullif such a type couldn't be found on the compilation unit's upstream dependencies.
-
-