org.sonar.java.ast.api
Enum JavaPunctuator

java.lang.Object
  extended by java.lang.Enum<JavaPunctuator>
      extended by org.sonar.java.ast.api.JavaPunctuator
All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType, com.sonar.sslr.api.TokenType, Serializable, Comparable<JavaPunctuator>

public enum JavaPunctuator
extends Enum<JavaPunctuator>
implements com.sonar.sslr.api.TokenType


Enum Constant Summary
AND
           
ANDAND
           
ANDEQU
           
AT
           
BANG
           
COLON
           
COMMA
           
DEC
           
DIV
           
DIVEQU
           
DOT
           
ELLIPSIS
           
EQU
           
EQUAL
           
GT
           
HAT
           
HATEQU
           
INC
           
LBRK
           
LE
           
LPAR
           
LT
           
LWING
           
MINUS
           
MINUSEQU
           
MOD
           
MODEQU
           
NOTEQUAL
           
OR
           
OREQU
           
OROR
           
PLUS
           
PLUSEQU
           
QUERY
           
RBRK
           
RPAR
           
RWING
           
SEMI
           
SL
           
SLEQU
           
STAR
           
STAREQU
           
TILDA
           
 
Method Summary
 String getName()
           
 String getValue()
           
 boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
           
static JavaPunctuator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavaPunctuator[] 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

AT

public static final JavaPunctuator AT

AND

public static final JavaPunctuator AND

ANDAND

public static final JavaPunctuator ANDAND

ANDEQU

public static final JavaPunctuator ANDEQU

BANG

public static final JavaPunctuator BANG

COLON

public static final JavaPunctuator COLON

COMMA

public static final JavaPunctuator COMMA

DEC

public static final JavaPunctuator DEC

DIV

public static final JavaPunctuator DIV

DIVEQU

public static final JavaPunctuator DIVEQU

DOT

public static final JavaPunctuator DOT

ELLIPSIS

public static final JavaPunctuator ELLIPSIS

EQU

public static final JavaPunctuator EQU

EQUAL

public static final JavaPunctuator EQUAL

GT

public static final JavaPunctuator GT

HAT

public static final JavaPunctuator HAT

HATEQU

public static final JavaPunctuator HATEQU

INC

public static final JavaPunctuator INC

LBRK

public static final JavaPunctuator LBRK

LT

public static final JavaPunctuator LT

LE

public static final JavaPunctuator LE

LPAR

public static final JavaPunctuator LPAR

LWING

public static final JavaPunctuator LWING

MINUS

public static final JavaPunctuator MINUS

MINUSEQU

public static final JavaPunctuator MINUSEQU

MOD

public static final JavaPunctuator MOD

MODEQU

public static final JavaPunctuator MODEQU

NOTEQUAL

public static final JavaPunctuator NOTEQUAL

OR

public static final JavaPunctuator OR

OREQU

public static final JavaPunctuator OREQU

OROR

public static final JavaPunctuator OROR

PLUS

public static final JavaPunctuator PLUS

PLUSEQU

public static final JavaPunctuator PLUSEQU

QUERY

public static final JavaPunctuator QUERY

RBRK

public static final JavaPunctuator RBRK

RPAR

public static final JavaPunctuator RPAR

RWING

public static final JavaPunctuator RWING

SEMI

public static final JavaPunctuator SEMI

SL

public static final JavaPunctuator SL

SLEQU

public static final JavaPunctuator SLEQU

STAR

public static final JavaPunctuator STAR

STAREQU

public static final JavaPunctuator STAREQU

TILDA

public static final JavaPunctuator TILDA
Method Detail

values

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

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

valueOf

public static JavaPunctuator 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

getName

public String getName()
Specified by:
getName in interface com.sonar.sslr.api.TokenType

getValue

public String getValue()
Specified by:
getValue in interface com.sonar.sslr.api.TokenType

hasToBeSkippedFromAst

public boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
Specified by:
hasToBeSkippedFromAst in interface com.sonar.sslr.api.TokenType


Copyright © 2012 SonarSource. All Rights Reserved.