The Trim Exclude Parameter Type window allows you to select the type of trim exclude
parameter you wish to add. There are three kinds of trim exclusion parameter.
An exclusion parameter that excludes a class prevents that class from being removed. However, in itself it will not prevent the fields and the methods of that class
from being removed.
An exclusion parameter that excludes a field prevents that field from being removed provided its containing class is not removed.
So excluding a field will not in itself prevent the containing class from being removed.
Similarly, an exclusion parameter that excludes a method prevents that method from being removed provided its containing class is not removed.
So, as with fields, excluding a method will not in itself prevent its containing class from being removed.
If a method and its containing class are explicitly or implicitly excluded then
all the classes, fields and methods that that method accesses will implicitly be excluded from being trimmed.
So, for a simple, self contained application, if the public static main(java.lang.String[]) method and its containing class are excluded then all the
classes, fields and methods directly or indirectly accessed by the public static main(java.lang.String[]) method will be implicitly excluded from being trimmed.
This will result in all the "used" classes, fields and methods being excluded and all the "unused" classes, fields and methods being removed.
|