Top Description Methods
org.eclipse.xtend.lib.macro.services

public Interface UpstreamTypeLookup

Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.RegisterGlobalsContext
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.declaration.CompilationUnit, .Type, com.google.common.annotations.Beta

Facilities to lookup of Java type declarations in upstream dependencies of the current CompilationUnit. This means that types defined in the same project will not be found.
Since
2.7

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

the type with the same qualified name as the given Class object, or null if that type couldn't be found on the compilation unit's upstream dependencies.
findUpstreamType
(Class<?>
the clazz representing the type to look up
clazz
)

public Type

Returns:

the type with the given qualified name, or null if such a type couldn't be found on the compilation unit's upstream dependencies.
findUpstreamType
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
typeName
)

Method Detail

findUpstreamTypeback to summary
public Type findUpstreamType(Class<?> clazz)
Parameters
clazz:Class<?>

the clazz representing the type to look up

Returns:Type

the type with the same qualified name as the given Class object, or null if that type couldn't be found on the compilation unit's upstream dependencies.

findUpstreamTypeback to summary
public Type findUpstreamType(String typeName)
Parameters
typeName:String

the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).

Returns:Type

the type with the given qualified name, or null if such a type couldn't be found on the compilation unit's upstream dependencies.