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

public Interface GlobalTypeLookup

Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.services.TypeLookup, org.eclipse.xtend.lib.macro.CodeGenerationContext
Imports
org.eclipse.xtend.lib.macro.declaration.Type

Since
2.8

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 units classpath.
findTypeGlobally
(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 units classpath.
findTypeGlobally
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
typeName
)

Method Detail

findTypeGloballyback to summary
public Type findTypeGlobally(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 units classpath.

findTypeGloballyback to summary
public Type findTypeGlobally(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 units classpath.