public class TextImpl extends java.lang.Object implements Prism4j.Text
| Constructor and Description |
|---|
TextImpl(java.lang.String literal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSyntax()
As we have only two types maybe doing a lot of `instanceof` checks is not that required
|
java.lang.String |
literal() |
int |
textLength() |
java.lang.String |
toString() |
public int textLength()
textLength in interface Prism4j.NodePrism4j.Text node it\'s Prism4j.Text.literal() length
and for Prism4j.Syntax it is Prism4j.Syntax.matchedString() lengthpublic final boolean isSyntax()
Prism4j.NodeisSyntax in interface Prism4j.NodePrism4j.Syntaxpublic java.lang.String literal()
literal in interface Prism4j.Textpublic java.lang.String toString()
toString in class java.lang.Object