Package com.tonic.analysis.source.emit
Enum IdentifierMode
- java.lang.Object
-
- java.lang.Enum<IdentifierMode>
-
- com.tonic.analysis.source.emit.IdentifierMode
-
- All Implemented Interfaces:
Serializable,Comparable<IdentifierMode>
public enum IdentifierMode extends Enum<IdentifierMode>
Modes for handling non-standard identifiers during source emission.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RAWKeep identifiers exactly as they appear in bytecode.SEMANTIC_RENAMERename invalid identifiers to semantic names (method_1, field_2, etc.).UNICODE_ESCAPEEscape non-standard characters to \\uXXXX format.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdentifierModevalueOf(String name)Returns the enum constant of this type with the specified name.static IdentifierMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RAW
public static final IdentifierMode RAW
Keep identifiers exactly as they appear in bytecode.
-
UNICODE_ESCAPE
public static final IdentifierMode UNICODE_ESCAPE
Escape non-standard characters to \\uXXXX format.
-
SEMANTIC_RENAME
public static final IdentifierMode SEMANTIC_RENAME
Rename invalid identifiers to semantic names (method_1, field_2, etc.).
-
-
Method Detail
-
values
public static IdentifierMode[] 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 (IdentifierMode c : IdentifierMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifierMode 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
-
-