Reference Obfuscation Field Include Parameter
|
|
The Field Include Parameter dialog has three facets:
- the specification of the field itself and
- the specification of the class that contains the field and
- the specification of the package that contains the class
For a field reference to be included the referenced field must match the full specification.
|
|
The field itself
In specifying the field whose references are to be included, you can specify:
- whether its access level is
- not specifed
- public
- protected
- package (i.e. default)
- private
- whether it has or doesn't have the modifiers
- static
- final
- volatile
- transient
- its name or a "*" wildcard string that its name must match
- the fully qualified name of its type
- the fully qualified class name of an annotation that a matching method must have. You can use the "*" wildcard. Do not include the '@' character.
|
|
|
The containing class
To specify the containing class of the field, click the Containing class tab.
The class Name field cannot be empty but a simple "*" wildcard is acceptable.
|
|
|
The containing package
To specify the containing package of the field, click the Containing package tab.
If you clear the Name field then you are specifying that the class is in the default package.
|
|
|
Example
The specification:
java.lang.System *
means include references to all fields :
- have a name matching
*
- are contained in a class that:
- has a name that matches
System
- is in a package that matches
java.lang
|