Dotfuscator User's Guide
Selecting By Event

Event rules are qualified by type rules, so they appear in the rules view as children of type nodes. An event rule will select all events (in all types matched by the parent type rule) that match your criteria. Supported matching criteria include event name and event attributes.

Event Name

You create a event rule by right clicking on the parent type rule’s node and selecting Add Event, then typing a name in the Name field. The name will be interpreted as a regular expression if the Regular Expression checkbox is checked; otherwise the name will be interpreted literally.

Event Attribute Specifier

In addition to event name, you can also select based on event attribute specifiers, using the values provided in the Attribute Specifier list box. A ‘-‘ preceding an attribute specifier negates the attribute (i.e. it selects all events that do not have the specified attribute). You can select multiple attributes from the list; the criteria implied by multiple selections are logically AND-ed together (that is, the set of selected events is the intersection of all events that match each attribute specifier.). For example, you can select events that are both public and static by selecting +public and +static from the list.

The attribute specifications are logically AND-ed with the event name, so if you want to select all events with a specific set of attributes, you need to provide a regular expression for the event name that selects all events (i.e. ".*").

Event Rule Node

The corresponding event node displayed in the rule editing view has a child element that indicates whether the rule is a regular expression and whether the rule has attribute specifiers. You can preview the events selected by the rule by right clicking on the node and selecting the Preview option from the menu.

In the screen shot, an event rule is defined that selects the names of all events (in all types) with names that start with "G".

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com