public static class ASTRewriteRule.RewritePossibilities
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RewritePossibilities(int numberOfVersions,
int order,
org.eclipse.jdt.core.dom.ASTNode nodeToRewrite,
ASTRewriteRule source) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.jdt.core.dom.ASTNode |
getNodeToRewrite()
The node to which this rewrite applies.
|
int |
getNumberOfVersions()
Gets the number of versions that this rewrite possibility supplies.
|
int |
getOrder()
Returns the order for this rewrite possibilities.
|
ASTRewriteRule |
getSource()
Get the ASTRewriteRule instance which produced this rewrite possibility.
|
protected RewritePossibilities(int numberOfVersions, int order, org.eclipse.jdt.core.dom.ASTNode nodeToRewrite, ASTRewriteRule source)
public int getOrder()
public int getNumberOfVersions()
ASTRewriteRule.RewriteArguments.getVersion()
.public org.eclipse.jdt.core.dom.ASTNode getNodeToRewrite()
public ASTRewriteRule getSource()
ASTRewriteRule.RewritePossibilities
instance is not interchangeable, and can only be used by its source rule.