com.sonarsource.cobol.api
Enum GcosKeyword

java.lang.Object
  extended by java.lang.Enum<GcosKeyword>
      extended by com.sonarsource.cobol.api.GcosKeyword
All Implemented Interfaces:
AstNodeType, TokenType, Serializable, Comparable<GcosKeyword>

public enum GcosKeyword
extends Enum<GcosKeyword>
implements TokenType


Enum Constant Summary
CD
           
CODE
           
COLUMN
           
COMMUNICATION
           
CONTROL
           
CONTROLS
           
DESTINATION
           
ERROR
           
FINAL
           
GENERATE
           
GLOBAL
           
GROUP
           
HEADING
           
INITIATE
           
LAST
           
LIMIT
           
LIMITS
           
MESSAGE
           
NUMBER
           
PLUS
           
QUEUE
           
RD
           
RECEIVE
           
SEGMENT
           
SEND
           
SOURCE
           
SUM
           
TABLE
           
TERMINAL
           
TERMINATE
           
TEXT
           
TYPE
           
 
Method Summary
 String getName()
           
 String getValue()
           
 boolean hasToBeSkippedFromAst(AstNode node)
           
static GcosKeyword valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GcosKeyword[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CD

public static final GcosKeyword CD

CODE

public static final GcosKeyword CODE

COLUMN

public static final GcosKeyword COLUMN

COMMUNICATION

public static final GcosKeyword COMMUNICATION

CONTROL

public static final GcosKeyword CONTROL

CONTROLS

public static final GcosKeyword CONTROLS

DESTINATION

public static final GcosKeyword DESTINATION

ERROR

public static final GcosKeyword ERROR

FINAL

public static final GcosKeyword FINAL

GENERATE

public static final GcosKeyword GENERATE

GLOBAL

public static final GcosKeyword GLOBAL

GROUP

public static final GcosKeyword GROUP

HEADING

public static final GcosKeyword HEADING

INITIATE

public static final GcosKeyword INITIATE

LAST

public static final GcosKeyword LAST

LIMIT

public static final GcosKeyword LIMIT

LIMITS

public static final GcosKeyword LIMITS

MESSAGE

public static final GcosKeyword MESSAGE

NUMBER

public static final GcosKeyword NUMBER

PLUS

public static final GcosKeyword PLUS

QUEUE

public static final GcosKeyword QUEUE

RD

public static final GcosKeyword RD

RECEIVE

public static final GcosKeyword RECEIVE

SEGMENT

public static final GcosKeyword SEGMENT

SEND

public static final GcosKeyword SEND

SOURCE

public static final GcosKeyword SOURCE

SUM

public static final GcosKeyword SUM

TABLE

public static final GcosKeyword TABLE

TERMINAL

public static final GcosKeyword TERMINAL

TERMINATE

public static final GcosKeyword TERMINATE

TEXT

public static final GcosKeyword TEXT

TYPE

public static final GcosKeyword TYPE
Method Detail

values

public static GcosKeyword[] 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 (GcosKeyword c : GcosKeyword.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GcosKeyword 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 name
NullPointerException - if the argument is null

hasToBeSkippedFromAst

public boolean hasToBeSkippedFromAst(AstNode node)
Specified by:
hasToBeSkippedFromAst in interface TokenType

getName

public String getName()
Specified by:
getName in interface TokenType

getValue

public String getValue()
Specified by:
getValue in interface TokenType


Copyright © 2011 SonarSource. All Rights Reserved.