public final class NodeInfoStore
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeInfoStore.CopyPlaceholderData |
static class |
NodeInfoStore.StringPlaceholderData |
| Constructor and Description |
|---|
NodeInfoStore(AST ast) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Block |
createCollapsePlaceholder() |
java.lang.Object |
getPlaceholderData(ASTNode node) |
boolean |
isCollapsed(ASTNode node) |
void |
markAsCopyTarget(ASTNode target,
RewriteEventStore.CopySourceInfo copySource)
Marks a node as a copy or move target.
|
void |
markAsStringPlaceholder(ASTNode placeholder,
java.lang.String code)
Marks a node as a placehoder for a plain string content.
|
ASTNode |
newPlaceholderNode(int nodeType)
Creates a placeholder node of the given type.
|
public NodeInfoStore(AST ast)
public final void markAsStringPlaceholder(ASTNode placeholder, java.lang.String code)
placeholder - The placeholder node that acts for the string content.code - The string content.public final void markAsCopyTarget(ASTNode target, RewriteEventStore.CopySourceInfo copySource)
target - The node at the target site. Can be a placeholder node but also the source node itself.copySource - The info at the source site.public final ASTNode newPlaceholderNode(int nodeType)
null if the type is not supportednodeType - Type of the node to create. Use the type constants in NodeInfoStore.public Block createCollapsePlaceholder()
public boolean isCollapsed(ASTNode node)
public java.lang.Object getPlaceholderData(ASTNode node)
public void clear()