NodeTransformer
Transformer that, given a tree node, will instantiate the corresponding transformed node.
Constructors
Functions
Tells the ASTTransformer whether this NodeTransformer already takes care of the node's children and no further computation is desired on that subtree. E.g., when we're mapping an ANTLR parse tree, and we have a context that is only a wrapper over several alternatives, and for some reason those are not labeled alternatives in ANTLR (subclasses), we may configure the transformer as follows:
Specify how to convert a child. The value obtained from the conversion could either be used as a constructor parameter when instantiating the parent, or be used to set the value after the parent has been instantiated.
Specify how to convert a child. The value obtained from the conversion can only be used as a constructor parameter when instantiating the parent. It cannot be used to set the value after the parent has been instantiated, because the property is not mutable.