Package examples.inifile
Enum IniFile.RuleNames
- java.lang.Object
-
- java.lang.Enum<IniFile.RuleNames>
-
- examples.inifile.IniFile.RuleNames
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IniFile.RuleNames>
- Enclosing class:
- IniFile
public static enum IniFile.RuleNames extends java.lang.Enum<IniFile.RuleNames>
This enum provides easy to remember enum constants for locating the rule identifiers and names. The enum constants have the same spelling as the rule names rendered in all caps with underscores replacing hyphens.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHA
id =16
, name ="alpha"
ANY
id =18
, name ="any"
BADSECTIONLINE
id =4
, name ="BadSectionLine"
BADVALUELINE
id =7
, name ="BadValueLine"
BLANKLINE
id =12
, name ="BlankLine"
COMMENT
id =14
, name ="comment"
DIGIT
id =17
, name ="digit"
GOODSECTIONLINE
id =3
, name ="GoodSectionLine"
GOODVALUELINE
id =6
, name ="GoodValueLine"
INIFILE
id =0
, name ="IniFile"
LINEEND
id =13
, name ="LineEnd"
SECTION
id =1
, name ="Section"
SECTIONLINE
id =2
, name ="SectionLine"
SECTIONNAME
id =9
, name ="SectionName"
VALUE
id =11
, name ="Value"
VALUEARRAY
id =8
, name ="ValueArray"
VALUELINE
id =5
, name ="ValueLine"
VALUENAME
id =10
, name ="ValueName"
WSP
id =15
, name ="wsp"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
ruleID()
Associates the enum with an identifier for the grammar rule it represents.java.lang.String
ruleName()
Associates the enum with the original grammar name of the rule it represents.static IniFile.RuleNames
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IniFile.RuleNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPHA
public static final IniFile.RuleNames ALPHA
id =16
, name ="alpha"
-
ANY
public static final IniFile.RuleNames ANY
id =18
, name ="any"
-
BADSECTIONLINE
public static final IniFile.RuleNames BADSECTIONLINE
id =4
, name ="BadSectionLine"
-
BADVALUELINE
public static final IniFile.RuleNames BADVALUELINE
id =7
, name ="BadValueLine"
-
BLANKLINE
public static final IniFile.RuleNames BLANKLINE
id =12
, name ="BlankLine"
-
COMMENT
public static final IniFile.RuleNames COMMENT
id =14
, name ="comment"
-
DIGIT
public static final IniFile.RuleNames DIGIT
id =17
, name ="digit"
-
GOODSECTIONLINE
public static final IniFile.RuleNames GOODSECTIONLINE
id =3
, name ="GoodSectionLine"
-
GOODVALUELINE
public static final IniFile.RuleNames GOODVALUELINE
id =6
, name ="GoodValueLine"
-
INIFILE
public static final IniFile.RuleNames INIFILE
id =0
, name ="IniFile"
-
LINEEND
public static final IniFile.RuleNames LINEEND
id =13
, name ="LineEnd"
-
SECTION
public static final IniFile.RuleNames SECTION
id =1
, name ="Section"
-
SECTIONLINE
public static final IniFile.RuleNames SECTIONLINE
id =2
, name ="SectionLine"
-
SECTIONNAME
public static final IniFile.RuleNames SECTIONNAME
id =9
, name ="SectionName"
-
VALUE
public static final IniFile.RuleNames VALUE
id =11
, name ="Value"
-
VALUEARRAY
public static final IniFile.RuleNames VALUEARRAY
id =8
, name ="ValueArray"
-
VALUELINE
public static final IniFile.RuleNames VALUELINE
id =5
, name ="ValueLine"
-
VALUENAME
public static final IniFile.RuleNames VALUENAME
id =10
, name ="ValueName"
-
WSP
public static final IniFile.RuleNames WSP
id =15
, name ="wsp"
-
-
Method Detail
-
values
public static IniFile.RuleNames[] 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 (IniFile.RuleNames c : IniFile.RuleNames.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IniFile.RuleNames valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
ruleName
public java.lang.String ruleName()
Associates the enum with the original grammar name of the rule it represents.- Returns:
- the original grammar rule name.
-
ruleID
public int ruleID()
Associates the enum with an identifier for the grammar rule it represents.- Returns:
- the rule name identifier.
-
-