Class TransferTypesPlugin
java.lang.Object
com.vaadin.hilla.parser.core.AbstractPlugin<PluginConfiguration>
com.vaadin.hilla.parser.plugins.transfertypes.TransferTypesPlugin
- All Implemented Interfaces:
Plugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<Class<? extends Plugin>> The plugins which have to come before this one in the chain, which a composite plugin checks when it is created.@NonNull Node<?, ?> 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.Methods inherited from class com.vaadin.hilla.parser.core.AbstractPlugin
getConfiguration, getParserConfig, setConfiguration, setParserConfig
-
Constructor Details
-
TransferTypesPlugin
public TransferTypesPlugin()
-
-
Method Details
-
getRequiredPlugins
Description copied from interface:PluginThe plugins which have to come before this one in the chain, which a composite plugin checks when it is created. -
resolve
Description copied from interface:PluginReplaces 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 foundnodePath- 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
-