public interface ElementMapper
Maps (or removes) elements.
-
Method Summary
Modifier and TypeMethodDescriptionmapElement
(CodegenContext ctx, TypedElementInfo element) Map an element to a different element (changing any of its properties), or remove the element.boolean
supportsElement
(TypedElementInfo element) Check if the element is supported.
-
Method Details
-
supportsElement
Check if the element is supported.- Parameters:
element
- element to check- Returns:
true
if this mapper is interested in the element
-
mapElement
Map an element to a different element (changing any of its properties), or remove the element.- Parameters:
ctx
- code generation contextelement
- element to map- Returns:
- mapped element, or empty optional to remove the element
-