Class NodeInfoStore
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.NodeInfoStore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getPlaceholderData(ASTNode node) booleanisCollapsed(ASTNode node) final voidmarkAsCopyTarget(ASTNode target, RewriteEventStore.CopySourceInfo copySource) Marks a node as a copy or move target.final voidmarkAsStringPlaceholder(ASTNode placeholder, String code) Marks a node as a placehoder for a plain string content.final ASTNodenewPlaceholderNode(int nodeType) Creates a placeholder node of the given type.
-
Constructor Details
-
NodeInfoStore
-
-
Method Details
-
markAsStringPlaceholder
Marks a node as a placehoder for a plain string content. The type of the node should correspond to the code's code content.- Parameters:
placeholder- The placeholder node that acts for the string content.code- The string content.
-
markAsCopyTarget
Marks a node as a copy or move target. The copy target represents a copied node at the target (copied) site.- Parameters:
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.
-
newPlaceholderNode
Creates a placeholder node of the given type.nullif the type is not supported- Parameters:
nodeType- Type of the node to create. Use the type constants inNodeInfoStore.- Returns:
- Returns a place holder node.
-
createCollapsePlaceholder
-
isCollapsed
-
getPlaceholderData
-
clear
public void clear()
-