public class Hint extends ParameterizedIterationOperation<FileLocationModel> implements HintText, HintLink, HintWithIssueCategory, HintEffort, HintQuickfix, HintDisplayMode
InlineHintModel objects to the graph via an Operation.| Modifier | Constructor and Description |
|---|---|
protected |
Hint() |
protected |
Hint(String variable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEffort() |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getHintText() |
IssueCategory |
getIssueCategory()
Returns the currently set
IssueCategory. |
List<Link> |
getLinks() |
List<Quickfix> |
getQuickfixes() |
Set<String> |
getRequiredParameterNames() |
Set<String> |
getTags() |
static HintBuilderIn |
in(String fileVariable)
Create a new
Hint in the FileLocationModel resolved by the given variable. |
void |
performParameterized(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FileLocationModel locationModel) |
void |
setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store) |
protected void |
setText(String text)
Set the inner hint text on this instance.
|
protected void |
setTitle(String title) |
static HintBuilderTitle |
titled(String title)
Create a new
Hint with the specified title. |
String |
toString() |
HintLink |
with(Link link)
Provide a link describing the topic more precisely
|
HintText |
withDisplayMode(IssueDisplayMode displayMode)
Sets the
IssueDisplayMode for this issue. |
HintEffort |
withEffort(int effort)
Adds effort to the Hint.
|
HintWithIssueCategory |
withIssueCategory(IssueCategory issueCategory)
Specifies the
IssueCategory. |
HintQuickfix |
withQuickfix(Quickfix quickfix)
Provide quickfix for later tooling or other processing
|
org.ocpsoft.rewrite.config.OperationBuilder |
withTags(Set<String> tags)
Adds a tag to the Hint.
|
static HintText |
withText(String text)
Create a new
Hint in the current FileLocationModel, and specify the text or content to be displayed in the report. |
perform, performcamelCase, checkVariableName, getVariableName, hasVariableNameSet, resolvePayload, resolveVariable, setVariableNameperformprotected Hint(String variable)
protected Hint()
public static HintBuilderIn in(String fileVariable)
Hint in the FileLocationModel resolved by the given variable.public static HintBuilderTitle titled(String title)
Hint with the specified title.public static HintText withText(String text)
Hint in the current FileLocationModel, and specify the text or content to be displayed in the report.public HintWithIssueCategory withIssueCategory(IssueCategory issueCategory)
HintTextIssueCategory.withIssueCategory in interface HintTextpublic HintText withDisplayMode(IssueDisplayMode displayMode)
HintTextIssueDisplayMode for this issue.withDisplayMode in interface HintTextpublic IssueCategory getIssueCategory()
IssueCategory.public void performParameterized(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FileLocationModel locationModel)
performParameterized in class ParameterizedIterationOperation<FileLocationModel>public HintEffort withEffort(int effort)
HintTextwithEffort in interface HintDisplayModewithEffort in interface HintLinkwithEffort in interface HintQuickfixwithEffort in interface HintTextwithEffort in interface HintWithIssueCategoryeffort - number of effort to be added to hintpublic org.ocpsoft.rewrite.config.OperationBuilder withTags(Set<String> tags)
HintEffortjava-ee-6, jpa-2, jpa, jms, websphere.withTags in interface HintEffortwithTags in interface HintTextpublic HintLink with(Link link)
HintTextwith in interface HintDisplayModewith in interface HintTextwith in interface HintWithIssueCategorylink - the link to be added to the Hintprotected void setText(String text)
protected void setTitle(String title)
public org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getHintText()
public int getEffort()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface org.ocpsoft.rewrite.param.Parameterizedpublic void setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store)
setParameterStore in interface org.ocpsoft.rewrite.param.Parameterizedpublic String toString()
toString in class AbstractIterationOperation<FileLocationModel>public HintQuickfix withQuickfix(Quickfix quickfix)
HintTextwithQuickfix in interface HintQuickfixwithQuickfix in interface HintTextquickfix - the quickfixes to setCopyright © 2018 JBoss by Red Hat. All rights reserved.