mjc

org.multijava.mjc
Class CClass.CClass$6

java.lang.Object
  extended byorg.multijava.mjc.CClass.NoDupStrategy
      extended byorg.multijava.mjc.CClass.CClass$6
All Implemented Interfaces:
CMethodSet.Strategy
Enclosing class:
CClass

class CClass.CClass$6
extends CClass.NoDupStrategy


Field Summary
 
Fields inherited from class org.multijava.mjc.CClass.NoDupStrategy
already_searched
 
Fields inherited from interface org.multijava.mjc.CMethodSet.Strategy
DONE_WITH_ACCUM, IGNORE_CURRENT, REMOVE_ACCUM
 
Constructor Summary
(package private) CClass.CClass$6()
           
 
Method Summary
private  boolean couldOverload(CSpecializedType[] ss, CSpecializedType[] ts)
           
 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 org.multijava.mjc.CClass.NoDupStrategy
alreadySearched
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CClass.CClass$6

CClass.CClass$6()
Method Detail

maybeInclude

public boolean maybeInclude(CMethod candidate,
                            CClassType[] args)
                     throws UnpositionedError
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
Throws:
UnpositionedError - usually the implementer will want to use CContextType.reportTrouble() for error reporting to avoid throwing an exception, the exception is allowed here for flexibility

resultFor

public byte resultFor(CMethod candidate,
                      CMethod accumMethod)
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 accumulator
accumMethod - a single method from the accumulator
Returns:
a bit mask indicating the actions to be taken

couldOverload

private boolean couldOverload(CSpecializedType[] ss,
                              CSpecializedType[] ts)

mjc

mjc is Copyright (C) 2000-2004 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. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.