Package examples.inifile
Enum UIniFile.RuleNames
- java.lang.Object
-
- java.lang.Enum<UIniFile.RuleNames>
-
- examples.inifile.UIniFile.RuleNames
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UIniFile.RuleNames>
- Enclosing class:
- UIniFile
public static enum UIniFile.RuleNames extends java.lang.Enum<UIniFile.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 BADSECTIONLINE
id =4
, name ="BadSectionLine"
BADVALUELINE
id =7
, name ="BadValueLine"
GOODSECTIONLINE
id =3
, name ="GoodSectionLine"
GOODVALUELINE
id =6
, name ="GoodValueLine"
INIFILE
id =0
, name ="IniFile"
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"
-
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 UIniFile.RuleNames
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UIniFile.RuleNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BADSECTIONLINE
public static final UIniFile.RuleNames BADSECTIONLINE
id =4
, name ="BadSectionLine"
-
BADVALUELINE
public static final UIniFile.RuleNames BADVALUELINE
id =7
, name ="BadValueLine"
-
GOODSECTIONLINE
public static final UIniFile.RuleNames GOODSECTIONLINE
id =3
, name ="GoodSectionLine"
-
GOODVALUELINE
public static final UIniFile.RuleNames GOODVALUELINE
id =6
, name ="GoodValueLine"
-
INIFILE
public static final UIniFile.RuleNames INIFILE
id =0
, name ="IniFile"
-
SECTION
public static final UIniFile.RuleNames SECTION
id =1
, name ="Section"
-
SECTIONLINE
public static final UIniFile.RuleNames SECTIONLINE
id =2
, name ="SectionLine"
-
SECTIONNAME
public static final UIniFile.RuleNames SECTIONNAME
id =9
, name ="SectionName"
-
VALUE
public static final UIniFile.RuleNames VALUE
id =11
, name ="Value"
-
VALUEARRAY
public static final UIniFile.RuleNames VALUEARRAY
id =8
, name ="ValueArray"
-
VALUELINE
public static final UIniFile.RuleNames VALUELINE
id =5
, name ="ValueLine"
-
VALUENAME
public static final UIniFile.RuleNames VALUENAME
id =10
, name ="ValueName"
-
-
Method Detail
-
values
public static UIniFile.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 (UIniFile.RuleNames c : UIniFile.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 UIniFile.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.
-
-