| Modifier and Type | Class and Description |
|---|---|
| public static record | |
| public static enum |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private BibTeXSyntaxHighlighter. | |
| public List | Returns: a list of non-overlapping highlight regions covering the source, ordered by their start offsetthe BibTeX source to analyze s)Computes highlight regions (start/end offsets + category) without producing ANSI-styled output. |
| public String | highlight(String s)
Implements io. Highlights the given Java source string. |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private Token | |
| private Token |
| BibTeXSyntaxHighlighter | back to summary |
|---|---|
| public BibTeXSyntaxHighlighter() | |
| BibTeXSyntaxHighlighter | back to summary |
|---|---|
| public BibTeXSyntaxHighlighter(boolean showLineNumbers) | |
| BibTeXSyntaxHighlighter | back to summary |
|---|---|
| public BibTeXSyntaxHighlighter(SyntaxTheme theme) | |
| BibTeXSyntaxHighlighter | back to summary |
|---|---|
| public BibTeXSyntaxHighlighter(SyntaxTheme theme, boolean showLineNumbers) | |
| appendBraceString | back to summary |
|---|---|
| private void appendBraceString(String text, StyleBuilder sb) | |
| appendCiteKey | back to summary |
|---|---|
| private void appendCiteKey(String text, StyleBuilder sb) | |
| applyStyles | back to summary |
|---|---|
| private void applyStyles(Token token, StyleBuilder sb, List<Token> tokens, int index) | |
| applyWithLines | back to summary |
|---|---|
| private void applyWithLines(StyleBuilder sb, BufferedTokenStream tokenStream) | |
| applyWithoutLines | back to summary |
|---|---|
| private void applyWithoutLines(StyleBuilder sb, BufferedTokenStream tokenStream) | |
| classify | back to summary |
|---|---|
| private BibTeXSyntaxHighlighter. | |
| computeHighlightRegions | back to summary |
|---|---|
| public List Computes highlight regions (start/end offsets + category) without producing ANSI-styled output. Useful for consumers (e.g. GUI text editors) that need to apply their own styling mechanism (CSS classes, text attributes, etc.) instead of ANSI escape codes.
| |
| highlight | back to summary |
|---|---|
| public String highlight(String s) Implements io. Doc from io. Highlights the given Java source string.
| |
| isBraceString | back to summary |
|---|---|
| pack-priv boolean isBraceString(Token token) | |
| isCiteKey | back to summary |
|---|---|
| pack-priv boolean isCiteKey(Token token, List<Token> tokens, int index) | |
| isComment | back to summary |
|---|---|
| pack-priv boolean isComment(Token token) | |
| isFieldName | back to summary |
|---|---|
| pack-priv boolean isFieldName(Token token, List<Token> tokens, int index) | |
| isKeyword | back to summary |
|---|---|
| pack-priv boolean isKeyword(Token token) | |
| isMultiLineToken | back to summary |
|---|---|
| pack-priv boolean isMultiLineToken(Token token) | |
| isName | back to summary |
|---|---|
| pack-priv boolean isName(Token token) | |
| isNumber | back to summary |
|---|---|
| pack-priv boolean isNumber(Token token) | |
| isString | back to summary |
|---|---|
| pack-priv boolean isString(Token token) | |
| nextDefaultToken | back to summary |
|---|---|
| private Token nextDefaultToken(List<Token> tokens, int index) | |
| previousDefaultToken | back to summary |
|---|---|
| private Token previousDefaultToken(List<Token> tokens, int index) | |
| Modifier and Type | Field and Description |
|---|---|
| private final BibTeXSyntaxHighlighter. | category
Record Component accessed by category(). |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BibTeXSyntaxHighlighter. | |
| public int | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| category | back to summary |
|---|---|
| private final BibTeXSyntaxHighlighter. Record Component accessed by category(). | |
| end | back to summary |
|---|---|
| private final int end Record Component accessed by end(). | |
| start | back to summary |
|---|---|
| private final int start Record Component accessed by start(). | |
| BibTeXHighlightRegion | back to summary |
|---|---|
| public BibTeXHighlightRegion(int start, int end, BibTeXSyntaxHighlighter. | |
| category | back to summary |
|---|---|
| public BibTeXSyntaxHighlighter. Record Component getter of category. | |
| end | back to summary |
|---|---|
| public int end() Record Component getter of end. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| start | back to summary |
|---|---|
| public int start() Record Component getter of start. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. | |
| public static final BibTeXSyntaxHighlighter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BibTeXSyntaxHighlighter. | |
| public static BibTeXSyntaxHighlighter. |
| CITE_KEY | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| COMMENT | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| DEFAULT | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| FIELD_NAME | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| KEYWORD | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| MACRO | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| NUMBER | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| STRING | back to summary |
|---|---|
| public static final BibTeXSyntaxHighlighter. | |
| BibTeXTokenCategory | back to summary |
|---|---|
| private BibTeXTokenCategory() | |
| valueOf | back to summary |
|---|---|
| public static BibTeXSyntaxHighlighter. | |
| values | back to summary |
|---|---|
| public static BibTeXSyntaxHighlighter. | |