public class ErrorDescriptionFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ErrorDescription |
forName(HintContext context,
TreePath tree,
String text,
Fix... fixes) |
static ErrorDescription |
forName(HintContext context,
Tree tree,
String text,
Fix... fixes) |
static ErrorDescription |
forSpan(HintContext context,
int start,
int end,
String text,
Fix... fixes)
Create a new
ErrorDescription. |
static ErrorDescription |
forTree(HintContext context,
TreePath tree,
String text,
Fix... fixes) |
static ErrorDescription |
forTree(HintContext context,
Tree tree,
String text,
Fix... fixes) |
public static ErrorDescription forTree(HintContext context, TreePath tree, String text, Fix... fixes)
public static ErrorDescription forTree(HintContext context, Tree tree, String text, Fix... fixes)
public static ErrorDescription forSpan(HintContext context, int start, int end, String text, Fix... fixes)
ErrorDescription. Severity is automatically inferred from the HintContext,
and the ErrorDescription is created to be consistent with ErrorDescriptions created
by the other factory methods in this class.context - from which the Severity and other properties are inferred.start - start of the warningend - end of the warningtext - the warning textfixes - one or more Fixes to show shown to the user.ErrorDescription for use in Java sourcepublic static ErrorDescription forName(HintContext context, TreePath tree, String text, Fix... fixes)
public static ErrorDescription forName(HintContext context, Tree tree, String text, Fix... fixes)
Built on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.