public enum MetricName extends Enum<MetricName>
Enum Constant and Description |
---|
DECLARED_TYPES_IN_MODULE
The number of types that UnifyAst considers to be part of the module being compiled.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidKey(String name)
Returns true if the given name can be used as a key for a compiler counter.
|
void |
setAmount(TreeLogger logger,
long amount)
Adds the given amount to the counter.
|
static MetricName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf, valueOf
$isInstance
public static final MetricName DECLARED_TYPES_IN_MODULE
public static MetricName[] values()
for (MetricName c : MetricName.values()) System.out.println(c);
public static MetricName valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void setAmount(TreeLogger logger, long amount)
logger
- the destination where the count will be logged.public static boolean isValidKey(String name)
Copyright © 2018. All rights reserved.