Enum Usage.Kind
- java.lang.Object
-
- java.lang.Enum<Usage.Kind>
-
- org.sonar.plugins.python.api.symbols.Usage.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<Usage.Kind>
- Enclosing interface:
- Usage
public static enum Usage.Kind extends Enum<Usage.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNMENT_LHSCLASS_DECLARATIONCOMP_DECLARATIONCOMPOUND_ASSIGNMENT_LHSEXCEPTION_INSTANCEFUNC_DECLARATIONGLOBAL_DECLARATIONIMPORTLOOP_DECLARATIONOTHERPARAMETERWITH_INSTANCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Usage.KindvalueOf(String name)Returns the enum constant of this type with the specified name.static Usage.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASSIGNMENT_LHS
public static final Usage.Kind ASSIGNMENT_LHS
-
COMPOUND_ASSIGNMENT_LHS
public static final Usage.Kind COMPOUND_ASSIGNMENT_LHS
-
IMPORT
public static final Usage.Kind IMPORT
-
LOOP_DECLARATION
public static final Usage.Kind LOOP_DECLARATION
-
COMP_DECLARATION
public static final Usage.Kind COMP_DECLARATION
-
OTHER
public static final Usage.Kind OTHER
-
PARAMETER
public static final Usage.Kind PARAMETER
-
FUNC_DECLARATION
public static final Usage.Kind FUNC_DECLARATION
-
CLASS_DECLARATION
public static final Usage.Kind CLASS_DECLARATION
-
EXCEPTION_INSTANCE
public static final Usage.Kind EXCEPTION_INSTANCE
-
WITH_INSTANCE
public static final Usage.Kind WITH_INSTANCE
-
GLOBAL_DECLARATION
public static final Usage.Kind GLOBAL_DECLARATION
-
-
Method Detail
-
values
public static Usage.Kind[] 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 (Usage.Kind c : Usage.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Usage.Kind 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
-
-