Package dap4.core.util
Enum DapSort
- java.lang.Object
-
- java.lang.Enum<DapSort>
-
- dap4.core.util.DapSort
-
- All Implemented Interfaces:
Serializable
,Comparable<DapSort>
public enum DapSort extends Enum<DapSort>
Define the kinds of AST objects to avoid having to do instanceof. The name field is for debugging.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATOMICTYPE
ATTRIBUTE
ATTRIBUTESET
DATASET
DIMENSION
ENUMCONST
ENUMERATION
GROUP
MAP
OTHERXML
SEQUENCE
STRUCTURE
VARIABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getClassFor()
String
getName()
boolean
isa(DapSort supersort)
boolean
isCompound()
boolean
isGroup()
boolean
isType()
boolean
isVar()
boolean
oneof(DapSort... which)
static DapSort
valueOf(String name)
Returns the enum constant of this type with the specified name.static DapSort[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATOMICTYPE
public static final DapSort ATOMICTYPE
-
ATTRIBUTESET
public static final DapSort ATTRIBUTESET
-
OTHERXML
public static final DapSort OTHERXML
-
ATTRIBUTE
public static final DapSort ATTRIBUTE
-
DIMENSION
public static final DapSort DIMENSION
-
MAP
public static final DapSort MAP
-
VARIABLE
public static final DapSort VARIABLE
-
DATASET
public static final DapSort DATASET
-
GROUP
public static final DapSort GROUP
-
ENUMERATION
public static final DapSort ENUMERATION
-
ENUMCONST
public static final DapSort ENUMCONST
-
SEQUENCE
public static final DapSort SEQUENCE
-
STRUCTURE
public static final DapSort STRUCTURE
-
-
Method Detail
-
values
public static DapSort[] 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 (DapSort c : DapSort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DapSort 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
-
getName
public final String getName()
-
getClassFor
public final Class getClassFor()
-
isa
public boolean isa(DapSort supersort)
-
oneof
public boolean oneof(DapSort... which)
-
isVar
public boolean isVar()
-
isGroup
public boolean isGroup()
-
isType
public boolean isType()
-
isCompound
public boolean isCompound()
-
-