Class JsonValuePlugin
java.lang.Object
com.vaadin.hilla.parser.core.AbstractPlugin<BackbonePluginConfiguration>
com.vaadin.hilla.parser.plugins.backbone.JsonValuePlugin
- All Implemented Interfaces:
Plugin
Adds support for Jackson's
JsonValue annotation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@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.@NonNull NodeDependenciesscan(@NonNull NodeDependencies nodeDependencies) Says what is below a node: its child nodes, walked right below it, and its related nodes, walked once below the root after everything already queued.Methods inherited from class com.vaadin.hilla.parser.core.AbstractPlugin
getConfiguration, getParserConfig, setConfiguration, setParserConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.hilla.parser.core.Plugin
enter, exit, getRequiredPlugins
-
Constructor Details
-
JsonValuePlugin
public JsonValuePlugin()
-
-
Method Details
-
scan
Description copied from interface:PluginSays what is below a node: its child nodes, walked right below it, and its related nodes, walked once below the root after everything already queued. Called when the walk enters a node, in the order of the plugins, each one adding to what the one before it returned. A node equal to one scanned before gets the same result without being scanned again.- Parameters:
nodeDependencies- the node with what the plugins before this one found below it- Returns:
- what is below the node, with what this plugin found added
-
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 foundparentPath- 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
-