public class PlainText extends TemplateUnit
| Constructor and Description |
|---|
PlainText(SourceRef sourceRef,
String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
chompLeadingLength(int length) |
int |
chompLeadingWhitespaceToEndOfLine() |
void |
chompTrailingLength(int length) |
int |
chompTrailingWhitespaceToStartOfLine() |
PlainText |
combineAdjacent(PlainText other) |
SourcePosition |
findSourcePositionOfNonWhitespace() |
String |
getText() |
boolean |
isWhitespace() |
int |
leadingWhitespaceLengthToEndOfLine() |
int |
trailingWhitespaceLengthToStartOfLine() |
void |
trim() |
static String |
unescape(String s) |
getSourceRef, isBlockLevelpublic String getText()
public PlainText combineAdjacent(PlainText other) throws TokenException
TokenExceptionpublic boolean isWhitespace()
public void trim()
public int trailingWhitespaceLengthToStartOfLine()
public int leadingWhitespaceLengthToEndOfLine()
public int chompTrailingWhitespaceToStartOfLine()
public void chompTrailingLength(int length)
public int chompLeadingWhitespaceToEndOfLine()
public void chompLeadingLength(int length)
public SourcePosition findSourcePositionOfNonWhitespace()
Copyright © 2016–2020 Fizzed, Inc. All rights reserved.