Package com.sonarsource.rpg.api.tree
Enum FileDeclarationTree.Flag
- java.lang.Object
-
- java.lang.Enum<FileDeclarationTree.Flag>
-
- com.sonarsource.rpg.api.tree.FileDeclarationTree.Flag
-
- All Implemented Interfaces:
Serializable
,Comparable<FileDeclarationTree.Flag>
- Enclosing interface:
- FileDeclarationTree
public static enum FileDeclarationTree.Flag extends Enum<FileDeclarationTree.Flag>
One of the possible aspects of an "F" specification which are defined as a character.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_OF_FILE
FILE_ADDITION
FILE_DESIGNATION
FILE_FORMAT
FILE_ORGANIZATION
FILE_TYPE
LIMITS_PROCESSING
RECORD_ADDRESS_TYPE
SEQUENCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
allowedChars()
int
position()
static FileDeclarationTree.Flag
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileDeclarationTree.Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE_TYPE
public static final FileDeclarationTree.Flag FILE_TYPE
-
FILE_DESIGNATION
public static final FileDeclarationTree.Flag FILE_DESIGNATION
-
END_OF_FILE
public static final FileDeclarationTree.Flag END_OF_FILE
-
FILE_ADDITION
public static final FileDeclarationTree.Flag FILE_ADDITION
-
SEQUENCE
public static final FileDeclarationTree.Flag SEQUENCE
-
FILE_FORMAT
public static final FileDeclarationTree.Flag FILE_FORMAT
-
LIMITS_PROCESSING
public static final FileDeclarationTree.Flag LIMITS_PROCESSING
-
RECORD_ADDRESS_TYPE
public static final FileDeclarationTree.Flag RECORD_ADDRESS_TYPE
-
FILE_ORGANIZATION
public static final FileDeclarationTree.Flag FILE_ORGANIZATION
-
-
Method Detail
-
values
public static FileDeclarationTree.Flag[] 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 (FileDeclarationTree.Flag c : FileDeclarationTree.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileDeclarationTree.Flag 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
-
position
public int position()
- Returns:
- the position at which the flag is defined in the "F" specification
-
allowedChars
public String allowedChars()
- Returns:
- a string containing all characters which are allowed by this flag
-
-