Module org.eclipse.xtend.lib.macro
Interface Tracability
- All Known Subinterfaces:
CodeGenerationContext,TransformationContext,ValidationContext
@Beta
public interface Tracability
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:
-
Method Summary
Modifier and TypeMethodDescriptiongetPrimarySourceElement(Element target) booleanisExternal(Element element) booleanisGenerated(Element element) booleanboolean
-
Method Details
-
isSource
- Parameters:
element-- Returns:
- whether the given element is a source (i.e Xtend) element.
- Since:
- 2.7
-
isGenerated
- Parameters:
element-- Returns:
- whether the given element is a Java element derived from the currently processed
CompilationUnit - Since:
- 2.7
-
isExternal
- Parameters:
element-- Returns:
- whether the given element is a Java element not derived from the currently processed
CompilationUnit - Since:
- 2.7
-
getPrimaryGeneratedJavaElement
- Parameters:
source-- Returns:
- the primary generated element (Java) derived from the given source element (Xtend).
- Since:
- 2.7
-
isThePrimaryGeneratedJavaElement
- Parameters:
target-- Returns:
- whether this element was already present in the Xtend source AST.
- Since:
- 2.7
-
getPrimarySourceElement
- Parameters:
target-- Returns:
- the source element (Xtend) the given target (Java) element is derived from
- Since:
- 2.7
-