Package org.gmetrics.metric
Enum MetricLevel
- java.lang.Object
-
- java.lang.Enum<MetricLevel>
-
- org.gmetrics.metric.MetricLevel
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
,Comparable<MetricLevel>
public enum MetricLevel extends Enum<MetricLevel> implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description static MetricLevel
MAX_VALUE
static MetricLevel
MIN_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricLevel
$INIT(Object... para)
groovy.lang.MetaClass
getMetaClass()
String
getName()
static List
getNames()
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
MetricLevel
next()
static MetricLevel
parse(String name)
static List<MetricLevel>
parseCommaSeparatedList(String names)
MetricLevel
previous()
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
String
toString()
static MetricLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static MetricLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METHOD
public static final MetricLevel METHOD
-
CLASS
public static final MetricLevel CLASS
-
PACKAGE
public static final MetricLevel PACKAGE
-
-
Field Detail
-
MIN_VALUE
public static final MetricLevel MIN_VALUE
-
MAX_VALUE
public static final MetricLevel MAX_VALUE
-
-
Method Detail
-
values
public static MetricLevel[] 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 (MetricLevel c : MetricLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricLevel 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
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getName
public final String getName()
-
parse
public static MetricLevel parse(String name)
-
parseCommaSeparatedList
public static List<MetricLevel> parseCommaSeparatedList(String names)
-
getNames
public static List getNames()
-
toString
public String toString()
- Overrides:
toString
in classEnum<MetricLevel>
-
next
public MetricLevel next()
-
previous
public MetricLevel previous()
-
$INIT
public static final MetricLevel $INIT(Object... para)
-
-