Package org.sonar.python.api
Enum IPythonGrammar
- java.lang.Object
-
- java.lang.Enum<IPythonGrammar>
-
- org.sonar.python.api.IPythonGrammar
-
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType,Serializable,Comparable<IPythonGrammar>,org.sonar.sslr.grammar.GrammarRuleKey
public enum IPythonGrammar extends Enum<IPythonGrammar> implements org.sonar.sslr.grammar.GrammarRuleKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CELLCELL_MAGIC_STATEMENTDYNAMIC_OBJECT_INFO_STATEMENTLINE_MAGICLINE_MAGIC_STATEMENTMAGIC_CELL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPythonGrammarvalueOf(String name)Returns the enum constant of this type with the specified name.static IPythonGrammar[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CELL
public static final IPythonGrammar CELL
-
MAGIC_CELL
public static final IPythonGrammar MAGIC_CELL
-
LINE_MAGIC
public static final IPythonGrammar LINE_MAGIC
-
LINE_MAGIC_STATEMENT
public static final IPythonGrammar LINE_MAGIC_STATEMENT
-
CELL_MAGIC_STATEMENT
public static final IPythonGrammar CELL_MAGIC_STATEMENT
-
DYNAMIC_OBJECT_INFO_STATEMENT
public static final IPythonGrammar DYNAMIC_OBJECT_INFO_STATEMENT
-
-
Method Detail
-
values
public static IPythonGrammar[] 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 (IPythonGrammar c : IPythonGrammar.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IPythonGrammar 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
-
-