Interface ElementMapper


public interface ElementMapper
Maps (or removes) elements.
  • Method Details

    • supportsElement

      boolean supportsElement(TypedElementInfo element)
      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 context
      element - element to map
      Returns:
      mapped element, or empty optional to remove the element