public class HintContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HintContext.MessageKind |
Modifier and Type | Method and Description |
---|---|
int |
getCaretLocation()
For suggestions, returns the caret location for the editor
for which the suggestion is being computed.
|
Map<String,TypeMirror> |
getConstraints() |
CompilationInfo |
getInfo() |
Map<String,Collection<? extends TreePath>> |
getMultiVariables() |
TreePath |
getPath() |
Preferences |
getPreferences() |
Severity |
getSeverity() |
Map<String,String> |
getVariableNames() |
Map<String,TreePath> |
getVariables() |
boolean |
isBulkMode()
Returns
true if the hint is being run in over many files, false
if only the file opened in the editor is being inspected. |
boolean |
isCanceled()
Returns
true if the computation has been canceled. |
void |
reportMessage(HintContext.MessageKind kind,
String text)
Will be used only for refactoring(s), will be ignored for hints.
|
public CompilationInfo getInfo()
public Preferences getPreferences()
public Severity getSeverity()
public TreePath getPath()
public Map<String,Collection<? extends TreePath>> getMultiVariables()
public Map<String,TypeMirror> getConstraints()
public void reportMessage(HintContext.MessageKind kind, String text)
kind
- text
- public boolean isBulkMode()
true
if the hint is being run in over many files, false
if only the file opened in the editor is being inspected.true
if the hint is being run in over many files.public boolean isCanceled()
true
if the computation has been canceled.true
if the computation has been canceled.public int getCaretLocation()