Package com.sonarsource.cobol.api
Enum CobolSpecialCharacter
- java.lang.Object
-
- java.lang.Enum<CobolSpecialCharacter>
-
- com.sonarsource.cobol.api.CobolSpecialCharacter
-
- All Implemented Interfaces:
AstNodeType
,TokenType
,Serializable
,Comparable<CobolSpecialCharacter>
public enum CobolSpecialCharacter extends Enum<CobolSpecialCharacter> implements TokenType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASTERISKCHAR
BACKSLASH
CARETCHAR
COLONCHAR
COMMACHAR
DOLLARCHAR
DOTCHAR
EQUALCHAR
LESSTHANCHAR
LPARENCHAR
MINUSCHAR
MORETHANCHAR
NOTSIGNCHAR
PLUSCHAR
POWERCHARS
RPARENCHAR
SEMICOLONCHAR
SLASHCHAR
SQLEXCLAMCHAR
SQLINTERROGATIONCHAR
SQLPIPECHAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getValue()
boolean
hasToBeSkippedFromAst(AstNode node)
static CobolSpecialCharacter
valueOf(String name)
Returns the enum constant of this type with the specified name.static CobolSpecialCharacter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOTCHAR
public static final CobolSpecialCharacter DOTCHAR
-
LPARENCHAR
public static final CobolSpecialCharacter LPARENCHAR
-
RPARENCHAR
public static final CobolSpecialCharacter RPARENCHAR
-
DOLLARCHAR
public static final CobolSpecialCharacter DOLLARCHAR
-
SLASHCHAR
public static final CobolSpecialCharacter SLASHCHAR
-
SEMICOLONCHAR
public static final CobolSpecialCharacter SEMICOLONCHAR
-
COMMACHAR
public static final CobolSpecialCharacter COMMACHAR
-
COLONCHAR
public static final CobolSpecialCharacter COLONCHAR
-
PLUSCHAR
public static final CobolSpecialCharacter PLUSCHAR
-
MINUSCHAR
public static final CobolSpecialCharacter MINUSCHAR
-
EQUALCHAR
public static final CobolSpecialCharacter EQUALCHAR
-
MORETHANCHAR
public static final CobolSpecialCharacter MORETHANCHAR
-
NOTSIGNCHAR
public static final CobolSpecialCharacter NOTSIGNCHAR
-
LESSTHANCHAR
public static final CobolSpecialCharacter LESSTHANCHAR
-
ASTERISKCHAR
public static final CobolSpecialCharacter ASTERISKCHAR
-
CARETCHAR
public static final CobolSpecialCharacter CARETCHAR
-
POWERCHARS
public static final CobolSpecialCharacter POWERCHARS
-
SQLPIPECHAR
public static final CobolSpecialCharacter SQLPIPECHAR
-
SQLEXCLAMCHAR
public static final CobolSpecialCharacter SQLEXCLAMCHAR
-
SQLINTERROGATIONCHAR
public static final CobolSpecialCharacter SQLINTERROGATIONCHAR
-
BACKSLASH
public static final CobolSpecialCharacter BACKSLASH
-
-
Method Detail
-
values
public static CobolSpecialCharacter[] 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 (CobolSpecialCharacter c : CobolSpecialCharacter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CobolSpecialCharacter 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
-
hasToBeSkippedFromAst
public boolean hasToBeSkippedFromAst(AstNode node)
- Specified by:
hasToBeSkippedFromAst
in interfaceTokenType
-
-