Zelix KlassMaster - Documentation

Trim Method Exclude Parameter

 
The Trim Method Exclude Parameter dialog has three facets:
  • the specification of the method itself and
  • the specification of the class that contains the method and
  • the specification of the package that contains the class
For a method to be excluded it must match the full specification.
 

The method itself

In specifying the method which is to be excluded, 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
    • abstract
    • static
    • final
    • native
    • synchronized
  • its name or a "*" wildcard string that its name must match
  • its argument types as either:
    • no arguments
    • "*" meaning any argument types
    • a comma separated list of fully qualified types
  • the exception classes that it throws. These are entered as a comma delimited list of fully qualified class names.
  • the fully qualified class name of an annotation that a matching method must have. You can use the "*" wildcard. Do not include the '@' character.
Trim Method Exclude Parameter - Method itself

 

The containing class

To specify the containing class, click the Containing class tab. The dialog basically works the same way as the Trim Class Exclude Parameter dialog. The difference is that you are now specifying the containing class of the method which is to be excluded. The class Name field cannot be empty but a simple "*" wildcard is acceptable.

If you wish to exclude the containing class as well as the method then you should select the Exclude class as well box.
Trim Method Exclude Parameter - Containing class

 

The containing package

To specify the containing package, click the Containing package tab. If you clear the Name input field then you are specifying that the class is in the default package.
Trim Method Exclude Parameter - Containing package

 

An example

The specification:

*.*^ implements java.util.Observer @pack2.MyAnnotation0 m*(java.lang.String[])

means exclude all methods that:
  • are annotated by a class matching pack2.MyAnnotation0
  • have a name that matches "m*"
  • have the argument type java.lang.String[]
  • are contained in a class that:
    • has a name that matches "*"
    • implements java.util.Observer
    • is contained in a package that matches "*"
and exclude the containing class as well.

Field Exclude Parameter Exclude Parameter Type
Zelix KlassMaster - Java Obfuscator