public static enum Expander.PairedDelims extends java.lang.Enum<Expander.PairedDelims>
Enum Constant and Description |
---|
CURLY
NO IDEA WHY THIS DOES NOT WORK!!
CURLY('{', '}'), RECTANGULAR('[', ']'), ROUNDED('(', ')');
char lChar, rChar;
PairedDelims(char l, char r) {
lChar = l;
rChar = r;
}
final public Pattern refPattern = Pattern.compile(
"\\$\\" + lChar + "([-!])?([^" + rChar + '\\' + lChar
+ "]+)\\" + rChar);
|
RECTANGULAR |
ROUNDED |
Modifier and Type | Field and Description |
---|---|
java.util.regex.Pattern |
refPattern |
Modifier and Type | Method and Description |
---|---|
void |
escape(java.lang.StringBuilder sb) |
java.lang.CharSequence |
preserveEscapes(java.lang.CharSequence s) |
static Expander.PairedDelims |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Expander.PairedDelims[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Expander.PairedDelims CURLY
public static final Expander.PairedDelims RECTANGULAR
public static final Expander.PairedDelims ROUNDED
public static Expander.PairedDelims[] values()
for (Expander.PairedDelims c : Expander.PairedDelims.values()) System.out.println(c);
public static Expander.PairedDelims valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.CharSequence preserveEscapes(java.lang.CharSequence s)
public void escape(java.lang.StringBuilder sb)