Package ch.usi.si.seart.treesitter
Enum Predicate.Step.Type
- java.lang.Object
-
- java.lang.Enum<Predicate.Step.Type>
-
- ch.usi.si.seart.treesitter.Predicate.Step.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Predicate.Step.Type>
- Enclosing class:
- Predicate.Step
public static enum Predicate.Step.Type extends Enum<Predicate.Step.Type>
Represents the type ofStep.- Since:
- 1.12.0
- Author:
- Ozren Dabić
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate.Step.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Predicate.Step.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DONE
public static final Predicate.Step.Type DONE
Steps with this type are sentinels that represent the end of an individual predicate. Only one such step is allowed per predicate.
-
CAPTURE
public static final Predicate.Step.Type CAPTURE
Steps with this type represent names of captures.
-
STRING
public static final Predicate.Step.Type STRING
Steps with this type represent literal strings.
-
-
Method Detail
-
values
public static Predicate.Step.Type[] 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 (Predicate.Step.Type c : Predicate.Step.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Predicate.Step.Type 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
-
-