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.StringgetText()Gets the raw text of this chunk.java.lang.StringtoString()
-
-
-
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 ofTextChunkwith the specified text.- Parameters:
text- The text of this chunk.- Throws:
java.lang.IllegalArgumentException- iftextisnull.
-
-