Package com.tonic.analysis.pdg.slice
Enum SliceResult.SliceType
- java.lang.Object
-
- java.lang.Enum<SliceResult.SliceType>
-
- com.tonic.analysis.pdg.slice.SliceResult.SliceType
-
- All Implemented Interfaces:
Serializable,Comparable<SliceResult.SliceType>
- Enclosing class:
- SliceResult
public static enum SliceResult.SliceType extends Enum<SliceResult.SliceType>
Direction a slice was taken in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKWARDWalked against the dependence edges, reaching everything the criterion depends on.CHOPThe intersection of a backward and a forward slice, as produced bySliceResult.intersect(com.tonic.analysis.pdg.slice.SliceResult).FORWARDWalked along the dependence edges, reaching everything the criterion can affect.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SliceResult.SliceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SliceResult.SliceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACKWARD
public static final SliceResult.SliceType BACKWARD
Walked against the dependence edges, reaching everything the criterion depends on.
-
FORWARD
public static final SliceResult.SliceType FORWARD
Walked along the dependence edges, reaching everything the criterion can affect.
-
CHOP
public static final SliceResult.SliceType CHOP
The intersection of a backward and a forward slice, as produced bySliceResult.intersect(com.tonic.analysis.pdg.slice.SliceResult).
-
-
Method Detail
-
values
public static SliceResult.SliceType[] 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 (SliceResult.SliceType c : SliceResult.SliceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SliceResult.SliceType 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
-
-