public final class ParserUtil extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
BLOCK_MULTIPLE_COMMENT_BEGIN
Symbols with which multiple comment starts.
|
private static java.lang.String |
BLOCK_MULTIPLE_COMMENT_END
Symbols with which multiple comment ends.
|
private static java.lang.String |
JAVADOC_START
Symbols with which javadoc starts.
|
| Modifier | Constructor and Description |
|---|---|
private |
ParserUtil()
Stop instances being created.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map.Entry<java.lang.Integer,java.lang.Integer> |
countLinesColumns(java.lang.String text,
int initialLinesCnt,
int initialColumnsCnt)
Count lines and columns (in last line) in text.
|
static DetailAST |
createBlockCommentNode(org.antlr.v4.runtime.CommonToken token)
Create block comment from token.
|
static DetailAST |
createBlockCommentNode(java.lang.String content)
Create block comment from string content.
|
private static final java.lang.String JAVADOC_START
private static final java.lang.String BLOCK_MULTIPLE_COMMENT_BEGIN
private static final java.lang.String BLOCK_MULTIPLE_COMMENT_END
private ParserUtil()
public static DetailAST createBlockCommentNode(java.lang.String content)
content - comment content.public static DetailAST createBlockCommentNode(org.antlr.v4.runtime.CommonToken token)
token - Token object.private static java.util.Map.Entry<java.lang.Integer,java.lang.Integer> countLinesColumns(java.lang.String text, int initialLinesCnt, int initialColumnsCnt)
text - String.initialLinesCnt - initial value of lines counter.initialColumnsCnt - initial value of columns counter.Copyright © 2001-2022. All Rights Reserved.