Enum Class Operation
- All Implemented Interfaces:
Serializable,Comparable<Operation>,Constable
The enum
Operation is intended for obfuscation operations. An example is if an operation
is uppercase, then the letter will be transformed to uppercase.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe obfuscation operation for the lower caseThe obfuscation operation for the negated caseThe obfuscation operation for no operation caseThe enum constant 'UNKNOWN' if the operation is unknownThe obfuscation operation for the upper case -
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterOperation on the given character.static CharacterOperation on the given character.static OperationtoOperation(String operationAsString) Gets the correspondingOperationfrom the given stringstatic OperationReturns the enum constant of this class with the specified name.static Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOWERCASE
The obfuscation operation for the lower case -
NEGATE
The obfuscation operation for the negated case -
NONE
The obfuscation operation for no operation case -
UPPERCASE
The obfuscation operation for the upper case -
UNKNOWN
The enum constant 'UNKNOWN' if the operation is unknown
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
operate
Operation on the given character.- Parameters:
character- the character to operateoperation- the operation- Returns:
- the operated character
-
toOperation
Gets the correspondingOperationfrom the given string- Parameters:
operationAsString- the operation as string- Returns:
- the
Operationobject
-
operate
Operation on the given character.- Parameters:
character- the character to operateoperation- the operationreverse- the flag to reverse the operation- Returns:
- the operated character
-