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

public Interface SourceTypeLookup

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

Facilities to lookup Xtend type declarations declared within the currently processed CompilationUnit.

Method Summary

Modifier and TypeMethod and Description
public AnnotationTypeDeclaration

Returns:

the AnnotationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit
findSourceAnnotationType
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
qualifiedName
)

public ClassDeclaration

Returns:

the ClassDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit
findSourceClass
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
qualifiedName
)

public EnumerationTypeDeclaration

Returns:

the EnumerationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit
findSourceEnumerationType
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
qualifiedName
)

public InterfaceDeclaration

Returns:

the InterfaceDeclaration with given qualified name, or null if no such interface declaration is contained in the currently processed CompilationUnit
findSourceInterface
(String
the qualified name of the type to look up. Nested class delimiter is expected to be the '.' (dot).
qualifiedName
)

Method Detail

findSourceAnnotationTypeback to summary
public AnnotationTypeDeclaration findSourceAnnotationType(String qualifiedName)
Parameters
qualifiedName:String

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

Returns:AnnotationTypeDeclaration

the AnnotationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit

findSourceClassback to summary
public ClassDeclaration findSourceClass(String qualifiedName)
Parameters
qualifiedName:String

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

Returns:ClassDeclaration

the ClassDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit

findSourceEnumerationTypeback to summary
public EnumerationTypeDeclaration findSourceEnumerationType(String qualifiedName)
Parameters
qualifiedName:String

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

Returns:EnumerationTypeDeclaration

the EnumerationTypeDeclaration with given qualified name, or null if no such class declaration is contained in the currently processed CompilationUnit

findSourceInterfaceback to summary
public InterfaceDeclaration findSourceInterface(String qualifiedName)
Parameters
qualifiedName:String

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

Returns:InterfaceDeclaration

the InterfaceDeclaration with given qualified name, or null if no such interface declaration is contained in the currently processed CompilationUnit