public enum NameCategory extends Enum<NameCategory>
| Enum Constant and Description |
|---|
AMBIGUOUS_NAME |
COMPILATION_ERROR |
EXPRESSION_NAME |
METHOD_NAME |
MODULE_NAME |
PACKAGE_NAME |
PACKAGE_OR_TYPE_NAME |
TYPE_NAME |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNameAcceptable(String name)
Is the given name acceptable for the given category?
|
boolean |
isNeedingDisambiguation()
Certain category include two or more unambiguous categories.
|
boolean |
isValid() |
static NameCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameCategory MODULE_NAME
public static final NameCategory PACKAGE_NAME
public static final NameCategory TYPE_NAME
public static final NameCategory EXPRESSION_NAME
public static final NameCategory METHOD_NAME
public static final NameCategory PACKAGE_OR_TYPE_NAME
public static final NameCategory AMBIGUOUS_NAME
public static final NameCategory COMPILATION_ERROR
public static NameCategory[] values()
for (NameCategory c : NameCategory.values()) System.out.println(c);
public static NameCategory 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 boolean isNeedingDisambiguation()
public boolean isNameAcceptable(String name)
public boolean isValid()
Copyright © 2007–2019. All rights reserved.