| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private final JavaParser | |
| private final boolean | |
| private final SyntaxTheme | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv String | |
| pack-priv Set | |
| pack-priv Set | |
| pack-priv Set | |
| 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 | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | styleMultiLineContent(JavaToken token, int[] lineNo, StyleBuilder sb, JavaSyntaxHighlighter.
|
| pack-priv void | |
| pack-priv void | styleWithoutLines(StyleBuilder sb, TokenRange tokenRange, JavaSyntaxHighlighter.
|
| pack-priv boolean |
| parser | back to summary |
|---|---|
| private final JavaParser parser | |
| showLineNumbers | back to summary |
|---|---|
| private final boolean showLineNumbers Hides io. | |
| theme | back to summary |
|---|---|
| private final SyntaxTheme theme Hides io. | |
| VAR | back to summary |
|---|---|
| private static final String VAR | |
| JavaSyntaxHighlighter | back to summary |
|---|---|
| public JavaSyntaxHighlighter() | |
| JavaSyntaxHighlighter | back to summary |
|---|---|
| public JavaSyntaxHighlighter(SyntaxTheme theme) | |
| JavaSyntaxHighlighter | back to summary |
|---|---|
| public JavaSyntaxHighlighter(boolean showLineNumbers) | |
| JavaSyntaxHighlighter | back to summary |
|---|---|
| public JavaSyntaxHighlighter(SyntaxTheme theme, boolean showLineNumbers) | |
| appendLineNo | back to summary |
|---|---|
| pack-priv void appendLineNo(int lineNo, StyleBuilder sb) | |
| applyStyle | back to summary |
|---|---|
| pack-priv void applyStyle(JavaToken token, StyleBuilder sb, JavaSyntaxHighlighter. | |
| doHighlight | back to summary |
|---|---|
| pack-priv String doHighlight(CompilationUnit unit, TokenRange tokenRange) | |
| findConstantDefinitions | back to summary |
|---|---|
| pack-priv Set | |
| findMethodAndConstructorIdentifiers | back to summary |
|---|---|
| pack-priv Set | |
| findTypeDefinitions | back to summary |
|---|---|
| pack-priv Set | |
| highlight | back to summary |
|---|---|
| public String highlight(String s) Implements io. Doc from io. Highlights the given Java source string.
| |
| isAnnotation | back to summary |
|---|---|
| pack-priv boolean isAnnotation(JavaToken token) | |
| isComment | back to summary |
|---|---|
| pack-priv boolean isComment(JavaToken token) | |
| isConstant | back to summary |
|---|---|
| pack-priv boolean isConstant(JavaToken token, Set<PositionalJavaToken> constants) | |
| isEOL | back to summary |
|---|---|
| pack-priv boolean isEOL(JavaToken token) | |
| isKeyword | back to summary |
|---|---|
| pack-priv boolean isKeyword(JavaToken token) | |
| isMethodOrConstructorIdentifier | back to summary |
|---|---|
| pack-priv boolean isMethodOrConstructorIdentifier(JavaToken token, Set<PositionalJavaToken> methodTokens) | |
| isMultiLineToken | back to summary |
|---|---|
| pack-priv boolean isMultiLineToken(JavaToken token) | |
| isNumberLiteral | back to summary |
|---|---|
| pack-priv boolean isNumberLiteral(JavaToken token) | |
| isStringOrJavadoc | back to summary |
|---|---|
| pack-priv boolean isStringOrJavadoc(JavaToken token) | |
| isTypeToken | back to summary |
|---|---|
| pack-priv boolean isTypeToken(JavaToken token, Set<PositionalJavaToken> typeTokens) | |
| isUnicodeEscape | back to summary |
|---|---|
| pack-priv boolean isUnicodeEscape(JavaToken token) | |
| startsOnNewLine | back to summary |
|---|---|
| pack-priv boolean startsOnNewLine(JavaToken token) | |
| styleMultiLineContent | back to summary |
|---|---|
| pack-priv void styleMultiLineContent(JavaToken token, int[] lineNo, StyleBuilder sb, JavaSyntaxHighlighter. | |
| styleWithLines | back to summary |
|---|---|
| pack-priv void styleWithLines(StyleBuilder sb, TokenRange tokenRange, JavaSyntaxHighlighter. | |
| styleWithoutLines | back to summary |
|---|---|
| pack-priv void styleWithoutLines(StyleBuilder sb, TokenRange tokenRange, JavaSyntaxHighlighter. | |
| tokenAndRangeEqual | back to summary |
|---|---|
| pack-priv boolean tokenAndRangeEqual(JavaToken token, Set<PositionalJavaToken> tokens) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | constants
Record Component accessed by constants(). |
| private final Set | methodNames
Record Component accessed by methodNames(). |
| private final Set | typeTokens
Record Component accessed by typeTokens(). |
| Access | Constructor and Description |
|---|---|
| private | AstBundle(Set<PositionalJavaToken> methodNames, Set<PositionalJavaToken> typeTokens, Set<PositionalJavaToken> constants)
|
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public Set | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Set |
| constants | back to summary |
|---|---|
| private final Set<PositionalJavaToken> constants Record Component accessed by constants(). | |
| methodNames | back to summary |
|---|---|
| private final Set<PositionalJavaToken> methodNames Record Component accessed by methodNames(). | |
| typeTokens | back to summary |
|---|---|
| private final Set<PositionalJavaToken> typeTokens Record Component accessed by typeTokens(). | |
| AstBundle | back to summary |
|---|---|
| private AstBundle(Set<PositionalJavaToken> methodNames, Set<PositionalJavaToken> typeTokens, Set<PositionalJavaToken> constants) | |
| constants | back to summary |
|---|---|
| public Set Record Component getter of constants. | |
| 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 | |
| methodNames | back to summary |
|---|---|
| public Set Record Component getter of methodNames. | |
| 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. | |
| typeTokens | back to summary |
|---|---|
| public Set Record Component getter of typeTokens. | |