Package com.tonic.analysis.source.emit
Enum IdentifierNormalizer.IdentifierType
- java.lang.Object
-
- java.lang.Enum<IdentifierNormalizer.IdentifierType>
-
- com.tonic.analysis.source.emit.IdentifierNormalizer.IdentifierType
-
- All Implemented Interfaces:
Serializable,Comparable<IdentifierNormalizer.IdentifierType>
- Enclosing class:
- IdentifierNormalizer
public static enum IdentifierNormalizer.IdentifierType extends Enum<IdentifierNormalizer.IdentifierType>
Identifier kinds, each with its own semantic-rename prefix and counter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSClass names; only the final name part is renamed, toClass_N, while invalid package parts are unicode-escaped instead.CONSTANTConstant names; an invalid one is renamed toconst_N.FIELDField names; an invalid one is renamed tofield_N.METHODMethod names; an invalid one is renamed tomethod_N.VARIABLELocal variable names; an invalid one is renamed tovar_N.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdentifierNormalizer.IdentifierTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IdentifierNormalizer.IdentifierType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METHOD
public static final IdentifierNormalizer.IdentifierType METHOD
Method names; an invalid one is renamed tomethod_N.
-
FIELD
public static final IdentifierNormalizer.IdentifierType FIELD
Field names; an invalid one is renamed tofield_N.
-
CLASS
public static final IdentifierNormalizer.IdentifierType CLASS
Class names; only the final name part is renamed, toClass_N, while invalid package parts are unicode-escaped instead.
-
VARIABLE
public static final IdentifierNormalizer.IdentifierType VARIABLE
Local variable names; an invalid one is renamed tovar_N.
-
CONSTANT
public static final IdentifierNormalizer.IdentifierType CONSTANT
Constant names; an invalid one is renamed toconst_N.
-
-
Method Detail
-
values
public static IdentifierNormalizer.IdentifierType[] 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 (IdentifierNormalizer.IdentifierType c : IdentifierNormalizer.IdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifierNormalizer.IdentifierType 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
-
-