Package org.opencypher.tools.g4tree
Enum BnfSymbols
- java.lang.Object
-
- java.lang.Enum<BnfSymbols>
-
- org.opencypher.tools.g4tree.BnfSymbols
-
- All Implemented Interfaces:
Serializable,Comparable<BnfSymbols>
public enum BnfSymbols extends Enum<BnfSymbols>
characters or groups of characters that need special treatment in BNF, G4 or both
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBnfSymbols.Interleaver
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNDOLLARDOUBLE_EXCLAMELLIPSISGREATER_THANLEFT_BRACELEFT_BRACKETLESS_THANREVERSE_SOLIDUSRIGHT_BRACERIGHT_BRACKETVERTICAL_BAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanallBnfSymbols(String subject)static booleananyBnfSymbols(String subject)StringgetActualCharacters()StringgetBnfForm()StringgetBnfName()static BnfSymbolsgetByName(String bnfName)static BnfSymbolsgetByValue(String characters)StringgetG4Name()static BnfSymbols.InterleavergetInterleave(String value)static BnfSymbolsvalueOf(String name)Returns the enum constant of this type with the specified name.static BnfSymbols[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASSIGN
public static final BnfSymbols ASSIGN
-
LESS_THAN
public static final BnfSymbols LESS_THAN
-
GREATER_THAN
public static final BnfSymbols GREATER_THAN
-
LEFT_BRACE
public static final BnfSymbols LEFT_BRACE
-
RIGHT_BRACE
public static final BnfSymbols RIGHT_BRACE
-
LEFT_BRACKET
public static final BnfSymbols LEFT_BRACKET
-
RIGHT_BRACKET
public static final BnfSymbols RIGHT_BRACKET
-
ELLIPSIS
public static final BnfSymbols ELLIPSIS
-
DOUBLE_EXCLAM
public static final BnfSymbols DOUBLE_EXCLAM
-
VERTICAL_BAR
public static final BnfSymbols VERTICAL_BAR
-
DOLLAR
public static final BnfSymbols DOLLAR
-
REVERSE_SOLIDUS
public static final BnfSymbols REVERSE_SOLIDUS
-
-
Method Detail
-
values
public static BnfSymbols[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BnfSymbols c : BnfSymbols.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BnfSymbols valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getActualCharacters
public String getActualCharacters()
-
getBnfForm
public String getBnfForm()
-
getG4Name
public String getG4Name()
-
getBnfName
public String getBnfName()
-
getByValue
public static BnfSymbols getByValue(String characters)
-
getByName
public static BnfSymbols getByName(String bnfName)
-
allBnfSymbols
public static boolean allBnfSymbols(String subject)
-
anyBnfSymbols
public static boolean anyBnfSymbols(String subject)
-
getInterleave
public static BnfSymbols.Interleaver getInterleave(String value)
-
-