org.multijava.mjc
Class CClass.CClass$3
java.lang.Object
org.multijava.mjc.CClass.NoDupStrategy
org.multijava.mjc.CClass.CClass$3
- All Implemented Interfaces:
- CMethodSet.Strategy
- Enclosing class:
- CClass
- class CClass.CClass$3
- extends CClass.NoDupStrategy
|
Method Summary |
boolean |
maybeInclude(CMethod candidate,
CClassType[] args)
Indicates whether the given candidate method
should be checked against the methods already in the
accumulator for possible inclusion in the accumulator. |
byte |
resultFor(CMethod candidate,
CMethod accumMethod)
Checks the given candidate method against a
single method in the accumulator and decides whether the
candidate should be added to the accumulator, whether the
method from the accumulator should be removed, and whether
additional checks against the remaining methods in the
accumulator are necessary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CClass.CClass$3
CClass.CClass$3()
maybeInclude
public boolean maybeInclude(CMethod candidate,
CClassType[] args)
- Description copied from interface:
CMethodSet.Strategy
- Indicates whether the given
candidate method
should be checked against the methods already in the
accumulator for possible inclusion in the accumulator.
- Parameters:
candidate - the candidate method for inclusion in
the accumulator
- Returns:
- true if the method should be considered
resultFor
public byte resultFor(CMethod candidate,
CMethod accumMethod)
throws UnpositionedError
- Description copied from interface:
CMethodSet.Strategy
- Checks the given
candidate method against a
single method in the accumulator and decides whether the
candidate should be added to the accumulator, whether the
method from the accumulator should be removed, and whether
additional checks against the remaining methods in the
accumulator are necessary.
- Parameters:
candidate - the candidate method for inclusion in
the accumulatoraccumMethod - a single method from the accumulator
- Returns:
- a bit mask indicating the actions to be taken
- Throws:
UnpositionedError - if a problem is detected in the
source code.
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.