Package spoon.pattern.internal.node
Interface InlineNode
- All Known Implementing Classes:
ForEachNode,SwitchNode
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-
Field Summary
Fields inherited from interface spoon.pattern.internal.node.RootNode
MATCH_ALL, MATCH_PART -
Method Summary
Modifier and TypeMethodDescription<T> voidgenerateInlineTargets(DefaultGenerator generator, ResultHolder<T> result, ImmutableMap parameters)Generates inline statements of this inlineRootNode.Methods inherited from interface spoon.pattern.internal.node.RootNode
forEachParameterInfo, generateTargets, isSimplifyGenerated, matchAllWith, matchTargets, replaceNode, setSimplifyGenerated
-
Method Details
-
generateInlineTargets
<T> void generateInlineTargets(DefaultGenerator generator, ResultHolder<T> result, ImmutableMap parameters)Generates inline statements of this inlineRootNode. This method is used when sources of pattern have to be printed- Parameters:
generator- a to be usedGeneratorresult- holder of the resultparameters- aImmutableMapwith current parameters
-