public class Literal extends Object
| Constructor and Description |
|---|
Literal() |
| Modifier and Type | Method and Description |
|---|---|
static void |
escapeTo(char value,
Appendable appendable) |
String |
getEscape(char value)
Return the char value as a string literal in a regexp.
|
static boolean |
isEscaped(char c)
Return true if the char should be escaped.
|
public static boolean isEscaped(char c)
c - the char to testpublic String getEscape(char value)
value - the valuepublic static void escapeTo(char value,
Appendable appendable)
throws IOException,
NullPointerException
IOExceptionNullPointerExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.