org.sonar.python.api
Enum PythonGrammar

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

public enum PythonGrammar
extends Enum<PythonGrammar>
implements org.sonar.sslr.grammar.GrammarRuleKey


Enum Constant Summary
A_EXPR
           
AND_EXPR
           
AND_TEST
           
ARGLIST
           
ARGUMENT
           
ASSERT_STMT
           
ATOM
           
AUGASSIGN
           
BREAK_STMT
           
CLASSDEF
           
CLASSNAME
           
COMP_FOR
           
COMP_IF
           
COMP_ITER
           
COMP_OPERATOR
           
COMPARISON
           
COMPOUND_STMT
           
CONTINUE_STMT
           
DECORATOR
           
DECORATORS
           
DEL_STMT
           
DICTORSETMAKER
           
DOTTED_AS_NAME
           
DOTTED_AS_NAMES
           
DOTTED_NAME
           
EXCEPT_CLAUSE
           
EXEC_STMT
           
EXPR
           
EXPRESSION_STMT
           
EXPRLIST
           
FACTOR
           
FILE_INPUT
           
FOR_STMT
           
FPDEF
           
FPLIST
           
FUNCDEF
           
FUNCNAME
           
GLOBAL_STMT
           
IF_STMT
           
IMPORT_AS_NAME
           
IMPORT_AS_NAMES
           
IMPORT_FROM
           
IMPORT_NAME
           
IMPORT_STMT
           
LAMBDEF
           
LAMBDEF_NOCOND
           
M_EXPR
           
NAME
           
NONLOCAL_STMT
           
NOT_TEST
           
OR_EXPR
           
OR_TEST
           
PASS_STMT
           
POWER
           
PRINT_STMT
           
RAISE_STMT
           
RETURN_STMT
           
SHIFT_EXPR
           
SIMPLE_STMT
           
SLICEOP
           
STAR_EXPR
           
STATEMENT
           
STMT_LIST
           
SUBSCRIPT
           
SUBSCRIPTLIST
           
SUITE
           
TEST
           
TEST_NOCOND
           
TESTLIST
           
TESTLIST_COMP
           
TESTLIST_STAR_EXPR
           
TRAILER
           
TRY_STMT
           
VARARGSLIST
           
WHILE_STMT
           
WITH_ITEM
           
WITH_STMT
           
XOR_EXPR
           
YIELD_EXPR
           
YIELD_STMT
           
 
Method Summary
static void compoundStatements(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
          Compound statements http://docs.python.org/reference/compound_stmts.html
static org.sonar.sslr.grammar.LexerfulGrammarBuilder create()
           
static void expressions(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
          Expressions http://docs.python.org/reference/expressions.html
static void grammar(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
           
static void simpleStatements(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
          Simple statements http://docs.python.org/reference/simple_stmts.html
static PythonGrammar valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PythonGrammar[] 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

FACTOR

public static final PythonGrammar FACTOR

TRAILER

public static final PythonGrammar TRAILER

SUBSCRIPTLIST

public static final PythonGrammar SUBSCRIPTLIST

SUBSCRIPT

public static final PythonGrammar SUBSCRIPT

SLICEOP

public static final PythonGrammar SLICEOP

TESTLIST_COMP

public static final PythonGrammar TESTLIST_COMP

DICTORSETMAKER

public static final PythonGrammar DICTORSETMAKER

ARGLIST

public static final PythonGrammar ARGLIST

ARGUMENT

public static final PythonGrammar ARGUMENT

NAME

public static final PythonGrammar NAME

VARARGSLIST

public static final PythonGrammar VARARGSLIST

FPDEF

public static final PythonGrammar FPDEF

FPLIST

public static final PythonGrammar FPLIST

TEST

public static final PythonGrammar TEST

TESTLIST

public static final PythonGrammar TESTLIST

COMP_FOR

public static final PythonGrammar COMP_FOR

COMP_ITER

public static final PythonGrammar COMP_ITER

COMP_IF

public static final PythonGrammar COMP_IF

TEST_NOCOND

public static final PythonGrammar TEST_NOCOND

EXPRLIST

public static final PythonGrammar EXPRLIST

EXPR

public static final PythonGrammar EXPR

STAR_EXPR

public static final PythonGrammar STAR_EXPR

TESTLIST_STAR_EXPR

public static final PythonGrammar TESTLIST_STAR_EXPR

YIELD_EXPR

public static final PythonGrammar YIELD_EXPR

ATOM

public static final PythonGrammar ATOM

POWER

public static final PythonGrammar POWER

A_EXPR

public static final PythonGrammar A_EXPR

M_EXPR

public static final PythonGrammar M_EXPR

SHIFT_EXPR

public static final PythonGrammar SHIFT_EXPR

XOR_EXPR

public static final PythonGrammar XOR_EXPR

AND_EXPR

public static final PythonGrammar AND_EXPR

OR_EXPR

public static final PythonGrammar OR_EXPR

COMPARISON

public static final PythonGrammar COMPARISON

COMP_OPERATOR

public static final PythonGrammar COMP_OPERATOR

OR_TEST

public static final PythonGrammar OR_TEST

AND_TEST

public static final PythonGrammar AND_TEST

NOT_TEST

public static final PythonGrammar NOT_TEST

LAMBDEF

public static final PythonGrammar LAMBDEF

LAMBDEF_NOCOND

public static final PythonGrammar LAMBDEF_NOCOND

SIMPLE_STMT

public static final PythonGrammar SIMPLE_STMT

EXPRESSION_STMT

public static final PythonGrammar EXPRESSION_STMT

PRINT_STMT

public static final PythonGrammar PRINT_STMT

EXEC_STMT

public static final PythonGrammar EXEC_STMT

ASSERT_STMT

public static final PythonGrammar ASSERT_STMT

AUGASSIGN

public static final PythonGrammar AUGASSIGN

PASS_STMT

public static final PythonGrammar PASS_STMT

DEL_STMT

public static final PythonGrammar DEL_STMT

RETURN_STMT

public static final PythonGrammar RETURN_STMT

YIELD_STMT

public static final PythonGrammar YIELD_STMT

RAISE_STMT

public static final PythonGrammar RAISE_STMT

BREAK_STMT

public static final PythonGrammar BREAK_STMT

CONTINUE_STMT

public static final PythonGrammar CONTINUE_STMT

IMPORT_STMT

public static final PythonGrammar IMPORT_STMT

IMPORT_NAME

public static final PythonGrammar IMPORT_NAME

IMPORT_FROM

public static final PythonGrammar IMPORT_FROM

IMPORT_AS_NAME

public static final PythonGrammar IMPORT_AS_NAME

DOTTED_AS_NAME

public static final PythonGrammar DOTTED_AS_NAME

IMPORT_AS_NAMES

public static final PythonGrammar IMPORT_AS_NAMES

DOTTED_AS_NAMES

public static final PythonGrammar DOTTED_AS_NAMES

GLOBAL_STMT

public static final PythonGrammar GLOBAL_STMT

NONLOCAL_STMT

public static final PythonGrammar NONLOCAL_STMT

COMPOUND_STMT

public static final PythonGrammar COMPOUND_STMT

SUITE

public static final PythonGrammar SUITE

STATEMENT

public static final PythonGrammar STATEMENT

STMT_LIST

public static final PythonGrammar STMT_LIST

IF_STMT

public static final PythonGrammar IF_STMT

WHILE_STMT

public static final PythonGrammar WHILE_STMT

FOR_STMT

public static final PythonGrammar FOR_STMT

TRY_STMT

public static final PythonGrammar TRY_STMT

EXCEPT_CLAUSE

public static final PythonGrammar EXCEPT_CLAUSE

WITH_STMT

public static final PythonGrammar WITH_STMT

WITH_ITEM

public static final PythonGrammar WITH_ITEM

FUNCDEF

public static final PythonGrammar FUNCDEF

DECORATORS

public static final PythonGrammar DECORATORS

DECORATOR

public static final PythonGrammar DECORATOR

DOTTED_NAME

public static final PythonGrammar DOTTED_NAME

FUNCNAME

public static final PythonGrammar FUNCNAME

CLASSDEF

public static final PythonGrammar CLASSDEF

CLASSNAME

public static final PythonGrammar CLASSNAME

FILE_INPUT

public static final PythonGrammar FILE_INPUT
Method Detail

values

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

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

valueOf

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

create

public static org.sonar.sslr.grammar.LexerfulGrammarBuilder create()

grammar

public static void grammar(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)

expressions

public static void expressions(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
Expressions http://docs.python.org/reference/expressions.html


simpleStatements

public static void simpleStatements(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
Simple statements http://docs.python.org/reference/simple_stmts.html


compoundStatements

public static void compoundStatements(org.sonar.sslr.grammar.LexerfulGrammarBuilder b)
Compound statements http://docs.python.org/reference/compound_stmts.html



Copyright © 2011-2014 SonarSource and Waleri Enns. All Rights Reserved.