Class TransferTypesPlugin

java.lang.Object
com.vaadin.hilla.parser.core.AbstractPlugin<PluginConfiguration>
com.vaadin.hilla.parser.plugins.transfertypes.TransferTypesPlugin
All Implemented Interfaces:
Plugin

public final class TransferTypesPlugin extends AbstractPlugin<PluginConfiguration>
  • Constructor Details

    • TransferTypesPlugin

      public TransferTypesPlugin()
  • Method Details

    • getRequiredPlugins

      public Collection<Class<? extends Plugin>> getRequiredPlugins()
      Description copied from interface: Plugin
      The plugins which have to come before this one in the chain, which a composite plugin checks when it is created.
    • resolve

      public @NonNull Node<?,?> resolve(@NonNull Node<?,?> node, @NonNull NodePath<?> nodePath)
      Description copied from interface: Plugin
      Replaces a node the walk has found before it is walked, which is how a plugin says what a node really is: a type mapped to another one, or a node carrying more than the one found, such as its Kotlin reflection. Called with the path of the node it is found below, before the node gets its own path, and in the order of the plugins, each one getting what the one before it returned.
      Parameters:
      node - the node found
      nodePath - the path of the node it is found below; for a related node, the path of the root
      Returns:
      the node to walk in its place, or the node itself