Package org.sonar.python.api
Enum PythonPunctuator
- java.lang.Object
-
- java.lang.Enum<PythonPunctuator>
-
- 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
Enum Constants Enum Constant Description ANDBitwise AND.AND_ASSIGNASSIGNATBACKTICKCOLONCOMMADIVDIV_ASSIGNDIV_DIVDIV_DIV_ASSIGNDOTEQUGTGT_EQULBRACKETLCURLYBRACELEFT_ASSIGNLEFT_OPLPARENTHESISLTLT_EQUMATRIX_MULT_ASSIGNMINUSMINUS_ASSIGNMODMOD_ASSIGNMULMUL_ASSIGNMUL_MULMUL_MUL_ASSIGNNOT_EQUNOT_EQU2ORBitwise OR.OR_ASSIGNPLUSPLUS_ASSIGNRBRACKETRCURLYBRACERIGHT_ASSIGNRIGHT_OPRPARENTHESISSEMICOLONTILDEXORXOR_ASSIGN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetValue()booleanhasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)static PythonPunctuatorvalueOf(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.
-
-
-
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
-
MATRIX_MULT_ASSIGN
public static final PythonPunctuator MATRIX_MULT_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 nameNullPointerException- if the argument is null
-
getName
public String getName()
- Specified by:
getNamein interfacecom.sonar.sslr.api.TokenType
-
getValue
public String getValue()
- Specified by:
getValuein interfacecom.sonar.sslr.api.TokenType
-
hasToBeSkippedFromAst
public boolean hasToBeSkippedFromAst(com.sonar.sslr.api.AstNode node)
- Specified by:
hasToBeSkippedFromAstin interfacecom.sonar.sslr.api.TokenType
-
-