| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Charset | |
| private boolean | |
| private boolean | |
| private ParserConfiguration. | |
| private boolean | |
| private final List | |
| private final List | |
| private boolean | |
| private boolean | |
| private SymbolResolver | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Charset | |
| public ParserConfiguration. | |
| public List | |
| public List | |
| public Optional | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public ParserConfiguration | setAttributeComments(boolean attributeComments)
Whether to run CommentsInserter, which will put the comments that were found in the source code into the comment and javadoc fields of the nodes it thinks they refer to. |
| public ParserConfiguration | setCharacterEncoding(Charset characterEncoding)
The character encoding used for reading input from files and streams. |
| public ParserConfiguration | |
| public ParserConfiguration | |
| public ParserConfiguration | |
| public ParserConfiguration | |
| public ParserConfiguration | setPreprocessUnicodeEscapes(boolean preprocessUnicodeEscapes)
When set to true, unicode escape handling is done by preprocessing the whole input, meaning that all unicode escapes are turned into unicode characters before parsing. |
| public ParserConfiguration | |
| public ParserConfiguration | setSymbolResolver(SymbolResolver symbolResolver)
Set the SymbolResolver to be injected while parsing. |
| public ParserConfiguration | setTabSize(int tabSize)
When a TAB character is encountered during parsing, the column position will be increased by this value. |
| attributeComments | back to summary |
|---|---|
| private boolean attributeComments | |
| characterEncoding | back to summary |
|---|---|
| private Charset characterEncoding | |
| doNotAssignCommentsPrecedingEmptyLines | back to summary |
|---|---|
| private boolean doNotAssignCommentsPrecedingEmptyLines | |
| ignoreAnnotationsWhenAttributingComments | back to summary |
|---|---|
| private boolean ignoreAnnotationsWhenAttributingComments | |
| languageLevel | back to summary |
|---|---|
| private ParserConfiguration. | |
| lexicalPreservationEnabled | back to summary |
|---|---|
| private boolean lexicalPreservationEnabled | |
| postProcessors | back to summary |
|---|---|
| private final List<ParseResult. | |
| preProcessors | back to summary |
|---|---|
| private final List<Providers. | |
| preprocessUnicodeEscapes | back to summary |
|---|---|
| private boolean preprocessUnicodeEscapes | |
| storeTokens | back to summary |
|---|---|
| private boolean storeTokens | |
| symbolResolver | back to summary |
|---|---|
| private SymbolResolver symbolResolver | |
| tabSize | back to summary |
|---|---|
| private int tabSize | |
| ParserConfiguration | back to summary |
|---|---|
| public ParserConfiguration() | |
| getCharacterEncoding | back to summary |
|---|---|
| public Charset getCharacterEncoding() | |
| getLanguageLevel | back to summary |
|---|---|
| public ParserConfiguration. | |
| getPostProcessors | back to summary |
|---|---|
| public List | |
| getPreProcessors | back to summary |
|---|---|
| public List | |
| getSymbolResolver | back to summary |
|---|---|
| public Optional Retrieve the SymbolResolver to be used while parsing, if any. | |
| getTabSize | back to summary |
|---|---|
| public int getTabSize() | |
| isAttributeComments | back to summary |
|---|---|
| public boolean isAttributeComments() | |
| isDoNotAssignCommentsPrecedingEmptyLines | back to summary |
|---|---|
| public boolean isDoNotAssignCommentsPrecedingEmptyLines() | |
| isIgnoreAnnotationsWhenAttributingComments | back to summary |
|---|---|
| public boolean isIgnoreAnnotationsWhenAttributingComments() | |
| isLexicalPreservationEnabled | back to summary |
|---|---|
| public boolean isLexicalPreservationEnabled() | |
| isPreprocessUnicodeEscapes | back to summary |
|---|---|
| public boolean isPreprocessUnicodeEscapes() | |
| isStoreTokens | back to summary |
|---|---|
| public boolean isStoreTokens() | |
| setAttributeComments | back to summary |
|---|---|
| public ParserConfiguration setAttributeComments(boolean attributeComments) Whether to run CommentsInserter, which will put the comments that were found in the source code into the comment and javadoc fields of the nodes it thinks they refer to. | |
| setCharacterEncoding | back to summary |
|---|---|
| public ParserConfiguration setCharacterEncoding(Charset characterEncoding) The character encoding used for reading input from files and streams. By default UTF8 is used. | |
| setDoNotAssignCommentsPrecedingEmptyLines | back to summary |
|---|---|
| public ParserConfiguration setDoNotAssignCommentsPrecedingEmptyLines(boolean doNotAssignCommentsPrecedingEmptyLines) | |
| setIgnoreAnnotationsWhenAttributingComments | back to summary |
|---|---|
| public ParserConfiguration setIgnoreAnnotationsWhenAttributingComments(boolean ignoreAnnotationsWhenAttributingComments) | |
| setLanguageLevel | back to summary |
|---|---|
| public ParserConfiguration setLanguageLevel(ParserConfiguration. | |
| setLexicalPreservationEnabled | back to summary |
|---|---|
| public ParserConfiguration setLexicalPreservationEnabled(boolean lexicalPreservationEnabled) Disabled by default. When this is enabled, LexicalPreservingPrinter.print can be used to reproduce the original formatting of the file. | |
| setPreprocessUnicodeEscapes | back to summary |
|---|---|
| public ParserConfiguration setPreprocessUnicodeEscapes(boolean preprocessUnicodeEscapes) When set to true, unicode escape handling is done by preprocessing the whole input, meaning that all unicode escapes are turned into unicode characters before parsing. That means the AST will never contain literal unicode escapes. However, positions in the AST will point to the original input, which is exactly the same as without this option. Without this option enabled, the unicode escapes will not be processed and are transfered intact to the AST. | |
| setStoreTokens | back to summary |
|---|---|
| public ParserConfiguration setStoreTokens(boolean storeTokens) | |
| setSymbolResolver | back to summary |
|---|---|
| public ParserConfiguration setSymbolResolver(SymbolResolver symbolResolver) Set the SymbolResolver to be injected while parsing. | |
| setTabSize | back to summary |
|---|---|
| public ParserConfiguration setTabSize(int tabSize) When a TAB character is encountered during parsing, the column position will be increased by this value. By default it is 1. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ParserConfiguration. | |
| public static ParserConfiguration. |
| BLEEDING_EDGE | back to summary |
|---|---|
| public static ParserConfiguration. The newest Java features supported. | |
| CURRENT | back to summary |
|---|---|
| public static ParserConfiguration. The latest Java version that is available. | |
| JAVA_10 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 10 | |
| JAVA_11 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 11 | |
| JAVA_12 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 12 | |
| JAVA_13 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 13 | |
| JAVA_14 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 14 | |
| JAVA_1_0 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 1.0 | |
| JAVA_1_1 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 1.1 | |
| JAVA_1_2 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 1.2 | |
| JAVA_1_3 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 1.3 | |
| JAVA_1_4 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 1.4 | |
| JAVA_5 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 5 | |
| JAVA_6 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 6 | |
| JAVA_7 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 7 | |
| JAVA_8 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 8 | |
| JAVA_9 | back to summary |
|---|---|
| public static final ParserConfiguration. Java 9 | |
| POPULAR | back to summary |
|---|---|
| public static ParserConfiguration. The most used Java version. | |
| postProcessor | back to summary |
|---|---|
| pack-priv final ParseResult. | |
| RAW | back to summary |
|---|---|
| public static ParserConfiguration. Does no post processing or validation. Only for people wanting the fastest parsing. | |
| validator | back to summary |
|---|---|
| pack-priv final Validator validator | |
| LanguageLevel | back to summary |
|---|---|
| private LanguageLevel(Validator validator, ParseResult. | |
| valueOf | back to summary |
|---|---|
| public static ParserConfiguration. | |
| values | back to summary |
|---|---|
| public static ParserConfiguration. | |