org.sonar.python.api
Enum PythonPunctuator

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

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


Enum Constant Summary
AND
          Bitwise AND.
AND_ASSIGN
           
ASSIGN
           
AT
           
BACKTICK
           
COLON
           
COMMA
           
DIV
           
DIV_ASSIGN
           
DIV_DIV
           
DIV_DIV_ASSIGN
           
DOT
           
EQU
           
GT
           
GT_EQU
           
LBRACKET
           
LCURLYBRACE
           
LEFT_ASSIGN
           
LEFT_OP
           
LPARENTHESIS
           
LT
           
LT_EQU
           
MINUS
           
MINUS_ASSIGN
           
MOD
           
MOD_ASSIGN
           
MUL
           
MUL_ASSIGN
           
MUL_MUL
           
MUL_MUL_ASSIGN
           
NOT_EQU
           
NOT_EQU2
           
OR
          Bitwise OR.
OR_ASSIGN
           
PLUS
           
PLUS_ASSIGN
           
RBRACKET
           
RCURLYBRACE
           
RIGHT_ASSIGN
           
RIGHT_OP
           
RPARENTHESIS
           
SEMICOLON
           
TILDE
           
XOR
           
XOR_ASSIGN
           
 
Method Summary
 String getName()
           
 String getValue()
           
 boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
           
static PythonPunctuator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PythonPunctuator[] 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

PLUS

public static final PythonPunctuator PLUS

MINUS

public static final PythonPunctuator MINUS

MUL

public static final PythonPunctuator MUL

MUL_MUL

public static final PythonPunctuator MUL_MUL

DIV

public static final PythonPunctuator DIV

DIV_DIV

public static final PythonPunctuator DIV_DIV

MOD

public static final PythonPunctuator MOD

LEFT_OP

public static final PythonPunctuator LEFT_OP

RIGHT_OP

public static final PythonPunctuator RIGHT_OP

AND

public static final PythonPunctuator AND
Bitwise AND.


OR

public static final PythonPunctuator OR
Bitwise OR.


XOR

public static final PythonPunctuator XOR

TILDE

public static final PythonPunctuator TILDE

LT

public static final PythonPunctuator LT

GT

public static final PythonPunctuator GT

LT_EQU

public static final PythonPunctuator LT_EQU

GT_EQU

public static final PythonPunctuator GT_EQU

EQU

public static final PythonPunctuator EQU

NOT_EQU

public static final PythonPunctuator NOT_EQU

NOT_EQU2

public static final PythonPunctuator NOT_EQU2

BACKTICK

public static final PythonPunctuator BACKTICK

LPARENTHESIS

public static final PythonPunctuator LPARENTHESIS

RPARENTHESIS

public static final PythonPunctuator RPARENTHESIS

LBRACKET

public static final PythonPunctuator LBRACKET

RBRACKET

public static final PythonPunctuator RBRACKET

LCURLYBRACE

public static final PythonPunctuator LCURLYBRACE

RCURLYBRACE

public static final PythonPunctuator RCURLYBRACE

COMMA

public static final PythonPunctuator COMMA

COLON

public static final PythonPunctuator COLON

DOT

public static final PythonPunctuator DOT

SEMICOLON

public static final PythonPunctuator SEMICOLON

AT

public static final PythonPunctuator AT

ASSIGN

public static final PythonPunctuator ASSIGN

PLUS_ASSIGN

public static final PythonPunctuator PLUS_ASSIGN

MINUS_ASSIGN

public static final PythonPunctuator MINUS_ASSIGN

MUL_ASSIGN

public static final PythonPunctuator MUL_ASSIGN

DIV_ASSIGN

public static final PythonPunctuator DIV_ASSIGN

DIV_DIV_ASSIGN

public static final PythonPunctuator DIV_DIV_ASSIGN

MOD_ASSIGN

public static final PythonPunctuator MOD_ASSIGN

AND_ASSIGN

public static final PythonPunctuator AND_ASSIGN

OR_ASSIGN

public static final PythonPunctuator OR_ASSIGN

XOR_ASSIGN

public static final PythonPunctuator XOR_ASSIGN

RIGHT_ASSIGN

public static final PythonPunctuator RIGHT_ASSIGN

LEFT_ASSIGN

public static final PythonPunctuator LEFT_ASSIGN

MUL_MUL_ASSIGN

public static final PythonPunctuator MUL_MUL_ASSIGN
Method Detail

values

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

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

valueOf

public static PythonPunctuator 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 © 2011-2014 SonarSource and Waleri Enns. All Rights Reserved.