Package com.yworks.yguard
Enum ObfuscatorTask.ReplacePathPolicy
- java.lang.Object
-
- java.lang.Enum<ObfuscatorTask.ReplacePathPolicy>
-
- com.yworks.yguard.ObfuscatorTask.ReplacePathPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ObfuscatorTask.ReplacePathPolicy>
- Enclosing class:
- ObfuscatorTask
public static enum ObfuscatorTask.ReplacePathPolicy extends java.lang.Enum<ObfuscatorTask.ReplacePathPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description fileIf class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> com/other/OtherStuff.propertiesfileorpathIf class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> A/other/OtherStuff.propertieslenientIf class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> A/other/OtherStuff.propertiesnameIf class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> com/yworks/A.properties com/other/OtherStuff.properties -> com/other/OtherStuff.propertiesnoneNo path adjustment at all.pathIf class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/SampleStuff.properties com/other/OtherStuff.properties -> A/other/OtherStuff.properties
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObfuscatorTask.ReplacePathPolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ObfuscatorTask.ReplacePathPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final ObfuscatorTask.ReplacePathPolicy none
No path adjustment at all.
-
path
public static final ObfuscatorTask.ReplacePathPolicy path
If class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/SampleStuff.properties com/other/OtherStuff.properties -> A/other/OtherStuff.properties
-
name
public static final ObfuscatorTask.ReplacePathPolicy name
If class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> com/yworks/A.properties com/other/OtherStuff.properties -> com/other/OtherStuff.properties
-
file
public static final ObfuscatorTask.ReplacePathPolicy file
If class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> com/other/OtherStuff.properties
-
fileorpath
public static final ObfuscatorTask.ReplacePathPolicy fileorpath
If class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> A/other/OtherStuff.properties
-
lenient
public static final ObfuscatorTask.ReplacePathPolicy lenient
If class obfuscation yields com.yworks.SampleClass -> A.A.A then resource files will be renamed as follows com/yworks/SampleStuff.properties -> A/A/A.properties com/other/OtherStuff.properties -> A/other/OtherStuff.properties
-
-
Method Detail
-
values
public static ObfuscatorTask.ReplacePathPolicy[] 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 (ObfuscatorTask.ReplacePathPolicy c : ObfuscatorTask.ReplacePathPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObfuscatorTask.ReplacePathPolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-