Class TextChunk
- java.lang.Object
-
- org.antlr.v4.runtime.tree.pattern.Chunk
-
- org.antlr.v4.runtime.tree.pattern.TextChunk
-
class TextChunk extends Chunk
Represents a span of raw text (concrete syntax) between tags in a tree pattern string.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Gets the raw text of this chunk.java.lang.String
toString()
-
-
-
Field Detail
-
text
private final java.lang.String text
This is the backing field forgetText()
.
-
-
Constructor Detail
-
TextChunk
public TextChunk(java.lang.String text)
Constructs a new instance ofTextChunk
with the specified text.- Parameters:
text
- The text of this chunk.- Throws:
java.lang.IllegalArgumentException
- iftext
isnull
.
-
-