public final class EscapeSequence extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EscapeSequence.Builder
A builder of
EscapeSequence . |
static class |
EscapeSequence.Entry
Represents an entry of
EscapeSequence . |
Modifier and Type | Method and Description |
---|---|
static EscapeSequence.Builder |
builder(char escapeCharacter)
Returns a new builder.
|
boolean |
canEscape(char c)
Returns whether or not the given character can be escaped.
|
boolean |
canEscapeLineSeparator()
Returns whether or not line separator character can be escaped.
|
List<EscapeSequence.Entry> |
getEntries()
Returns the entries.
|
char |
getEscapeCharacter()
Returns the escape character.
|
public static EscapeSequence.Builder builder(char escapeCharacter)
escapeCharacter
- the escape characterpublic char getEscapeCharacter()
public boolean canEscapeLineSeparator()
true
if line separator character can be escaped, otherwise false
public boolean canEscape(char c)
c
- the target charactertrue
if the given character can be escaped, otherwise false
public List<EscapeSequence.Entry> getEntries()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.