mjc

org.multijava.mjc
Class JTypeDeclaration.MethodRecord

java.lang.Object
  extended byorg.multijava.mjc.JTypeDeclaration.MethodRecord
All Implemented Interfaces:
Comparable
Enclosing class:
JTypeDeclaration

class JTypeDeclaration.MethodRecord
extends Object
implements Comparable


Field Summary
(package private)  CSourceMethod methodSig
          The signature of this method.
(package private)  boolean needsDispatcher
          If true then this method requires a dispatcher; if false this method may or may not require a dispatcher depending on the other method in the context.
(package private)  CMethod topConcreteMethod
          The top concrete method of this method's generic function.
(package private)  String topSig
          String representation of the signature of the top method.
(package private)  TokenReference where
           
 
Constructor Summary
(package private) JTypeDeclaration.MethodRecord(JMethodDeclarationType methodDecl)
           
 
Method Summary
 int compareTo(Object o)
          Imposes an ordering based on identity and signature of the top methods.
private  String topSig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

where

TokenReference where

needsDispatcher

boolean needsDispatcher
If true then this method requires a dispatcher; if false this method may or may not require a dispatcher depending on the other method in the context.


methodSig

CSourceMethod methodSig
The signature of this method.


topConcreteMethod

CMethod topConcreteMethod
The top concrete method of this method's generic function.


topSig

String topSig
String representation of the signature of the top method. Initialized lazily by topSig().

Constructor Detail

JTypeDeclaration.MethodRecord

JTypeDeclaration.MethodRecord(JMethodDeclarationType methodDecl)
Method Detail

compareTo

public int compareTo(Object o)
Imposes an ordering based on identity and signature of the top methods. This ensures that methods of the same generic function are contiguous in a natural-order sort on collections of MethodRecords.

Specified by:
compareTo in interface Comparable

topSig

private String topSig()

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.