| Access | Constructor and Description |
|---|---|
| public | |
| public | TextBlockLiteralExpr(final String
the value of the literal value)Creates a text block literal expression from given string. |
| public | TextBlockLiteralExpr(TokenRange tokenRange, String value)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public String | |
| public TextBlockLiteralExpr | |
| public TextBlockLiteralExpr | clone()
Overrides com. |
| private boolean | |
| public TextBlockLiteralExprMetaModel | |
| public void | |
| private int | |
| private boolean | Returns: is the line with index lineNr the last line in rawLines?
|
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public String | |
| public Stream | stripIndentOfLines()
Most of the algorithm for stripIndent, stopping just before concatenating all the lines into a single string. |
| public Optional | |
| public String | |
| private String |
| TextBlockLiteralExpr | back to summary |
|---|---|
| public TextBlockLiteralExpr() | |
| TextBlockLiteralExpr | back to summary |
|---|---|
| public TextBlockLiteralExpr(final String value) Creates a text block literal expression from given string.
| |
| TextBlockLiteralExpr | back to summary |
|---|---|
| public TextBlockLiteralExpr(TokenRange tokenRange, String value) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asString | back to summary |
|---|---|
public String asString()
| |
| asTextBlockLiteralExpr | back to summary |
|---|---|
| public TextBlockLiteralExpr asTextBlockLiteralExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public TextBlockLiteralExpr clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| emptyOrWhitespace | back to summary |
|---|---|
private boolean emptyOrWhitespace(String rawLine)
| |
| getMetaModel | back to summary |
|---|---|
| public TextBlockLiteralExprMetaModel getMetaModel() Overrides com.
| |
| ifTextBlockLiteralExpr | back to summary |
|---|---|
| public void ifTextBlockLiteralExpr(Consumer<TextBlockLiteralExpr> action) Overrides com.
| |
| indentSize | back to summary |
|---|---|
private int indentSize(String s)
| |
| isLastLine | back to summary |
|---|---|
private boolean isLastLine(String[] rawLines, Integer lineNr)
| |
| isTextBlockLiteralExpr | back to summary |
|---|---|
| public boolean isTextBlockLiteralExpr() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| stripIndent | back to summary |
|---|---|
public String stripIndent()
| |
| stripIndentOfLines | back to summary |
|---|---|
| public Stream Most of the algorithm for stripIndent, stopping just before concatenating all the lines into a single string. Useful for tools. | |
| toTextBlockLiteralExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |
| translateEscapes | back to summary |
|---|---|
public String translateEscapes()
| |
| trimTrailing | back to summary |
|---|---|
| private String trimTrailing(String source) Can be replaced when moving to JDK 11 | |