Interface InlineNode

All Superinterfaces:
Matchers, RootNode
All Known Implementing Classes:
ForEachNode, SwitchNode

public interface InlineNode extends RootNode
Represents a kind of RootNode, whose AST statements are understood as pattern statements. For example CtForEach statement is handled as repeated generation of pattern Or CtIf statement is handled as optionally generated pattern
  • Method Details

    • generateInlineTargets

      <T> void generateInlineTargets(DefaultGenerator generator, ResultHolder<T> result, ImmutableMap parameters)
      Generates inline statements of this inline RootNode. This method is used when sources of pattern have to be printed
      Parameters:
      generator - a to be used Generator
      result - holder of the result
      parameters - a ImmutableMap with current parameters