Package org.meeuw.json.grep
Enum GrepMain.Output
- java.lang.Object
-
- java.lang.Enum<GrepMain.Output>
-
- org.meeuw.json.grep.GrepMain.Output
-
- All Implemented Interfaces:
Serializable,Comparable<GrepMain.Output>
- Enclosing class:
- GrepMain
public static enum GrepMain.Output extends Enum<GrepMain.Output>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLVALUEKEYKEYANDFULLVALUEKEYANDVALUEPATHPATHANDFULLVALUEPATHANDVALUEVALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanneedsObject()static GrepMain.OutputvalueOf(String name)Returns the enum constant of this type with the specified name.static GrepMain.Output[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATHANDVALUE
public static final GrepMain.Output PATHANDVALUE
-
PATHANDFULLVALUE
public static final GrepMain.Output PATHANDFULLVALUE
-
KEYANDVALUE
public static final GrepMain.Output KEYANDVALUE
-
KEYANDFULLVALUE
public static final GrepMain.Output KEYANDFULLVALUE
-
PATH
public static final GrepMain.Output PATH
-
KEY
public static final GrepMain.Output KEY
-
VALUE
public static final GrepMain.Output VALUE
-
FULLVALUE
public static final GrepMain.Output FULLVALUE
-
-
Method Detail
-
values
public static GrepMain.Output[] 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 (GrepMain.Output c : GrepMain.Output.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GrepMain.Output 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
-
needsObject
public boolean needsObject()
-
-