| java.lang.Object ch.ethz.prose.filter.PointFilter ch.ethz.prose.filter.CompositePointFilter ch.ethz.prose.filter.PointCutter
All known Subclasses: ch.ethz.prose.filter.FieldsNamedFilter, ch.ethz.prose.crosscut.MethodCutSpecializer, ch.ethz.prose.filter.ORingPointCutter, ch.ethz.prose.filter.ExceptionTypeFilter, ch.ethz.prose.filter.FieldsInTypeFilter, ch.ethz.prose.filter.ExecutionsInSystemClass, ch.ethz.prose.filter.FieldsInClassFilter, ch.ethz.prose.filter.ANDingPointCutter, ch.ethz.prose.crosscut.ConstructorCutSpecializer, ch.ethz.prose.filter.ExecutionsInSubclassFilter, ch.ethz.prose.filter.ExecutionsInClassFilter, ch.ethz.prose.filter.ExecutionsInMethodFilter, ch.ethz.prose.filter.ObjectFilter, ch.ethz.prose.filter.ExecutionsAclFilter, ch.ethz.prose.filter.ExceptionMessageFilter, ch.ethz.prose.filter.FieldsWithModifierFilter, ch.ethz.prose.filter.ExceptionsClassFilter, ch.ethz.prose.filter.ExecutionsAtMethodEntry, ch.ethz.prose.filter.NegatingPointCutter,
PointCutter | abstract public class PointCutter extends CompositePointFilter implements Serializable(Code) | | Class PointCutter is an abstract implementation of
PointFilter which additionaly defines two operators
AND , resp. OR that allow the construction
of PointFilter objects via combination of existing
specializer instances.
Expected Use
the following construction should be legal:
PointFilter x = (new MethodEntries( ) ) .AND
(new MethodNanmes("*Foo") )
Subclasses of PointCutter are mandated
to implement a toString method of their own which
describes in an executive way their name.
version: $Revision: 1.2 $ author: Andrei Popovici |
Method Summary | |
public PointCutter | AND(PointCutter other) Return a new PointCutter such that:
- An event e is considered special if both
this PointCutter, as well as other
consider e as special. | public PointCutter | OR(PointCutter other) Return a new PointCutter such that:
- An event e is considered special if either
this PointCutter, or other consider
e as special, or both. | abstract protected boolean | doIsSpecialEvent(CodeJoinPoint execEvent) Template method, to be implemented by subclasses. | abstract protected boolean | doIsSpecialRequest(JoinPointRequest req) Template method, to be implemented by subclasses. | public boolean | isSpecialEvent(JoinPoint execEvent) Subclasses of this class should, in conformance with the
PointFilter abstract class, implement this method.
This method checks whether this PointCutter accepts the kind of
requests of evRec (see acceptMask )
. | public boolean | isSpecialRequest(JoinPointRequest evRec) Subclasses of this class should, in conformance with the
PointFilter abstract class, implement this method.
This method checks whether this PointCutter accepts the kind of
requests of evRec (see acceptMask )
. | public List | memberPointFilters() Default implementation of the memberPointFilters method. | public void | setToString(String txt) | public String | toString() |
acceptMask | public int acceptMask(Code) | | |
canFilterStaticallyMask | public int canFilterStaticallyMask(Code) | | |
mayFilterStaticallyMask | public int mayFilterStaticallyMask(Code) | | |
txt | String txt(Code) | | This method sets the value of the String returned by toString .
|
AND | public PointCutter AND(PointCutter other)(Code) | | Return a new PointCutter such that:
- An event e is considered special if both
this PointCutter, as well as other
consider e as special.
- A request r is considered special if both
this PointCutter, as well as other
consider r as special.
.
This method is syntactic sugar.
|
OR | public PointCutter OR(PointCutter other)(Code) | | Return a new PointCutter such that:
- An event e is considered special if either
this PointCutter, or other consider
e as special, or both.
- A request r is considered special if either
this PointCutter, or other considers
r as special, or both.
.
This method is syntactic sugar.
|
doIsSpecialEvent | abstract protected boolean doIsSpecialEvent(CodeJoinPoint execEvent)(Code) | | Template method, to be implemented by subclasses.
|
doIsSpecialRequest | abstract protected boolean doIsSpecialRequest(JoinPointRequest req)(Code) | | Template method, to be implemented by subclasses.
|
isSpecialEvent | public boolean isSpecialEvent(JoinPoint execEvent)(Code) | | Subclasses of this class should, in conformance with the
PointFilter abstract class, implement this method.
This method checks whether this PointCutter accepts the kind of
requests of evRec (see acceptMask )
. If it accepts such events, it
calls the template method doIsSpecialRequest if
evRec can be filtered dynamically(see canFilterStatically ).
|
isSpecialRequest | public boolean isSpecialRequest(JoinPointRequest evRec)(Code) | | Subclasses of this class should, in conformance with the
PointFilter abstract class, implement this method.
This method checks whether this PointCutter accepts the kind of
requests of evRec (see acceptMask )
. If it accepts such events, it
calls the template method doIsSpecialRequest if
evRec can be filtered statically (see mayFilterStatically ).
|
memberPointFilters | public List memberPointFilters()(Code) | | Default implementation of the memberPointFilters method.
It returns this PointCutter.
|
Methods inherited from ch.ethz.prose.filter.CompositePointFilter | abstract public List memberPointFilters()(Code)(Java Doc)
|
|
|