public class LintSyntaxHighlighter
extends java.lang.Object
| Constructor and Description |
|---|
LintSyntaxHighlighter(java.lang.String fileName,
java.lang.String source) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeDedent(int fromOffset,
int toOffset) |
int |
computeMaxLineLength(int fromOffset,
int toOffset) |
void |
generateHtml(com.android.utils.HtmlBuilder builder,
int startHighlightOffset,
int endHighlightOffset,
boolean error) |
void |
initializeLineNumberMap() |
boolean |
isDedent()
Whether the highlighter should dedent the code (removing shared whitespace on the left) to
make as much code visible as possible
|
boolean |
isForceSingleLineRange() |
boolean |
isPadCaretLine()
Whether we should pad the caret line with spaces to ensure background colors are shown
|
void |
setDedent(boolean dedent)
Whether the highlighter should dedent the code (removing shared whitespace on the left) to
make as much code visible as possible
|
LintSyntaxHighlighter |
setForceSingleLineRange(boolean forceSingleLineRange)
Sets whether we force the error range to be limited to a single line in
generateHtml(HtmlBuilder, int, int, boolean) |
LintSyntaxHighlighter |
setPadCaretLine(boolean padCaretLine)
Whether we should pad the caret line with spaces to ensure background colors are shown
|
public LintSyntaxHighlighter(@NonNull
java.lang.String fileName,
@NonNull
java.lang.String source)
public boolean isForceSingleLineRange()
public LintSyntaxHighlighter setForceSingleLineRange(boolean forceSingleLineRange)
generateHtml(HtmlBuilder, int, int, boolean)public boolean isPadCaretLine()
public LintSyntaxHighlighter setPadCaretLine(boolean padCaretLine)
public boolean isDedent()
public void setDedent(boolean dedent)
public void initializeLineNumberMap()
public int computeDedent(int fromOffset,
int toOffset)
public int computeMaxLineLength(int fromOffset,
int toOffset)
public void generateHtml(@NonNull
com.android.utils.HtmlBuilder builder,
int startHighlightOffset,
int endHighlightOffset,
boolean error)