Package org.sonar.javascript.tree
Enum KindSet
- java.lang.Object
-
- java.lang.Enum<KindSet>
-
- org.sonar.javascript.tree.KindSet
-
- All Implemented Interfaces:
Serializable,Comparable<KindSet>,Kinds
public enum KindSet extends Enum<KindSet> implements Kinds
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNMENT_KINDSCOMPARISON_KINDSEQUALITY_KINDSFUNCTION_KINDSINC_DEC_KINDSLITERAL_KINDSLOOP_KINDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Kinds other)Set<Tree.Kind>getSubKinds()static KindSetvalueOf(String name)Returns the enum constant of this type with the specified name.static KindSet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASSIGNMENT_KINDS
public static final KindSet ASSIGNMENT_KINDS
-
INC_DEC_KINDS
public static final KindSet INC_DEC_KINDS
-
EQUALITY_KINDS
public static final KindSet EQUALITY_KINDS
-
COMPARISON_KINDS
public static final KindSet COMPARISON_KINDS
-
FUNCTION_KINDS
public static final KindSet FUNCTION_KINDS
-
LOOP_KINDS
public static final KindSet LOOP_KINDS
-
LITERAL_KINDS
public static final KindSet LITERAL_KINDS
-
-
Method Detail
-
values
public static KindSet[] 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 (KindSet c : KindSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KindSet 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
-
-