Package org.gmetrics.metric
Enum MetricLevel
- java.lang.Object
-
- java.lang.Enum<MetricLevel>
-
- org.gmetrics.metric.MetricLevel
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,java.io.Serializable,java.lang.Comparable<MetricLevel>
public enum MetricLevel extends java.lang.Enum<MetricLevel> implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description static MetricLevelMAX_VALUEstatic MetricLevelMIN_VALUE
-
Constructor Summary
Constructors Modifier Constructor Description privateMetricLevel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricLevel$INIT(java.lang.Object... para)groovy.lang.MetaClassgetMetaClass()java.lang.StringgetName()static java.util.ListgetNames()java.lang.ObjectgetProperty(java.lang.String property)java.lang.ObjectinvokeMethod(java.lang.String method, java.lang.Object arguments)MetricLevelnext()static MetricLevelparse(java.lang.String name)static java.util.List<MetricLevel>parseCommaSeparatedList(java.lang.String names)MetricLevelprevious()voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(java.lang.String property, java.lang.Object value)java.lang.StringtoString()static MetricLevelvalueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getName
public final java.lang.String getName()
-
parse
public static MetricLevel parse(java.lang.String name)
-
parseCommaSeparatedList
public static java.util.List<MetricLevel> parseCommaSeparatedList(java.lang.String names)
-
getNames
public static java.util.List getNames()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<MetricLevel>
-
next
public MetricLevel next()
-
previous
public MetricLevel previous()
-
$INIT
public static final MetricLevel $INIT(java.lang.Object... para)
-
-