public static enum Parser.Extension extends Enum<Parser.Extension>
Enum Constant and Description |
---|
NEW_CLASS_WITHOUT_KEYWORD
The
new keyword can be left out when a class object is instantiated. |
NEW_CLASS_WITHOUT_PARENTHESES
The "()" can be omitted when instantiating a class object with its zero-arg constructor.
|
OPERATOR_GLOB
The operator
=* implements a wildcard pattern matching algorithm. |
OPERATOR_REGEX
The operator
=~ implements a regex pattern matching algorithm. |
Modifier and Type | Method and Description |
---|---|
static Parser.Extension |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parser.Extension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parser.Extension NEW_CLASS_WITHOUT_KEYWORD
new
keyword can be left out when a class object is instantiated. Notice that the new
can never be left out when creating arrays.public static final Parser.Extension NEW_CLASS_WITHOUT_PARENTHESES
public static final Parser.Extension OPERATOR_GLOB
=*
implements a wildcard pattern matching algorithm.
Usage example:
"foo.java" =* "*.java"
public static final Parser.Extension OPERATOR_REGEX
=~
implements a regex pattern matching algorithm.
Usage example:
".*" =~ "abc"
public static Parser.Extension[] values()
for (Parser.Extension c : Parser.Extension.values()) System.out.println(c);
public static Parser.Extension valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018 Arno Unkrig. All rights reserved.