Package | Description |
---|---|
org.netbeans.spi.java.hints |
Modifier and Type | Method and Description |
---|---|
static ErrorDescription |
ErrorDescriptionFactory.forName(HintContext context,
TreePath tree,
String text,
Fix... fixes) |
static ErrorDescription |
ErrorDescriptionFactory.forName(HintContext context,
Tree tree,
String text,
Fix... fixes) |
static ErrorDescription |
ErrorDescriptionFactory.forSpan(HintContext context,
int start,
int end,
String text,
Fix... fixes)
Create a new
ErrorDescription . |
static ErrorDescription |
ErrorDescriptionFactory.forTree(HintContext context,
TreePath tree,
String text,
Fix... fixes) |
static ErrorDescription |
ErrorDescriptionFactory.forTree(HintContext context,
Tree tree,
String text,
Fix... fixes) |
static boolean |
MatcherUtilities.matches(HintContext ctx,
Collection<? extends TreePath> variable,
String pattern,
Map<String,TreePath> outVariables,
Map<String,Collection<? extends TreePath>> outMultiVariables,
Map<String,String> outVariables2Names) |
static boolean |
MatcherUtilities.matches(HintContext ctx,
TreePath variable,
String pattern) |
static boolean |
MatcherUtilities.matches(HintContext ctx,
TreePath variable,
String pattern,
boolean fillInVariablesHack) |
static boolean |
MatcherUtilities.matches(HintContext ctx,
TreePath variable,
String pattern,
Map<String,TreePath> outVariables,
Map<String,Collection<? extends TreePath>> outMultiVariables,
Map<String,String> outVariables2Names) |
static boolean |
MatcherUtilities.matches(HintContext ctx,
TreePath variable,
String pattern,
Map<String,TreePath> outVariables,
Map<String,Collection<? extends TreePath>> outMultiVariables,
Map<String,String> outVariables2Names,
Map<String,TypeMirror> variable2Type) |
static Fix |
JavaFixUtilities.removeFromParent(HintContext ctx,
String displayName,
TreePath what)
Creates a fix that removes the given code corresponding to the given tree
node from the source code.
|
static Fix |
JavaFixUtilities.rewriteFix(HintContext ctx,
String displayName,
TreePath what,
String to)
Prepare a fix that will replace the given tree node (
what ) with the
given code. |
static Fix |
JavaFixUtilities.safelyRemoveFromParent(HintContext ctx,
String displayName,
TreePath what)
Creates a fix that removes the given code corresponding to the given tree
node together with all its usages from the source code
|