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

public Interface Tracability

Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.CodeGenerationContext, org.eclipse.xtend.lib.macro.TransformationContext, org.eclipse.xtend.lib.macro.ValidationContext
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.declaration.CompilationUnit, .Element, com.google.common.annotations.Beta

Support for navigating between the primary AST structure representing the Xtend code and the corresponding Java elements derived from that.
Author
Sven Efftinge
See Also
Associator

Method Summary

Modifier and TypeMethod and Description
public Element

Returns:

the primary generated element (Java) derived from the given source element (Xtend).
getPrimaryGeneratedJavaElement
(Element source)

public Element

Returns:

the source element (Xtend) the given target (Java) element is derived from
getPrimarySourceElement
(Element target)

public boolean

Returns:

whether the given element is a Java element not derived from the currently processed CompilationUnit
isExternal
(Element element)

public boolean

Returns:

whether the given element is a Java element derived from the currently processed CompilationUnit
isGenerated
(Element element)

public boolean

Returns:

whether the given element is a source (i.e Xtend) element.
isSource
(Element element)

public boolean

Returns:

whether this element was already present in the Xtend source AST.
isThePrimaryGeneratedJavaElement
(Element target)

Method Detail

getPrimaryGeneratedJavaElementback to summary
public Element getPrimaryGeneratedJavaElement(Element source)
Returns:Element

the primary generated element (Java) derived from the given source element (Xtend).

Since
2.7
getPrimarySourceElementback to summary
public Element getPrimarySourceElement(Element target)
Returns:Element

the source element (Xtend) the given target (Java) element is derived from

Since
2.7
isExternalback to summary
public boolean isExternal(Element element)
Returns:boolean

whether the given element is a Java element not derived from the currently processed CompilationUnit

Since
2.7
isGeneratedback to summary
public boolean isGenerated(Element element)
Returns:boolean

whether the given element is a Java element derived from the currently processed CompilationUnit

Since
2.7
isSourceback to summary
public boolean isSource(Element element)
Returns:boolean

whether the given element is a source (i.e Xtend) element.

Since
2.7
isThePrimaryGeneratedJavaElementback to summary
public boolean isThePrimaryGeneratedJavaElement(Element target)
Returns:boolean

whether this element was already present in the Xtend source AST.

Since
2.7