Class JTypeDeclaration.MethodList

  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.multijava.mjc.JTypeDeclaration.MethodList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable
Enclosing class:

class JTypeDeclaration.MethodList
extends ArrayList

Nested Class Summary
Nested classes inherited from class java.util.AbstractList
Field Summary
Fields inherited from class java.util.ArrayList
Fields inherited from class java.util.AbstractList
Constructor Summary
(package private) JTypeDeclaration.MethodList(int initialCapacity)
Method Summary
(package private)  void addAppropriateMethodTo(ArrayList methods, JTypeDeclaration.DispatcherClassList dispClasses, int gfID)
          Determines whether a dispatcher is needed for the methods in this.
(package private)  boolean addMethod(JTypeDeclaration.MethodRecord m)
(package private)  JTypeDeclaration.MethodRecord getMethod(int index)
(package private)  CSourceMethod[] methodArray()
(package private)  void methodArray(CSourceMethod[] dst, int offset)
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList

Constructor Detail


JTypeDeclaration.MethodList(int initialCapacity)
Method Detail


boolean addMethod(JTypeDeclaration.MethodRecord m)


JTypeDeclaration.MethodRecord getMethod(int index)


CSourceMethod[] methodArray()


void methodArray(CSourceMethod[] dst,
                 int offset)


void addAppropriateMethodTo(ArrayList methods,
                            JTypeDeclaration.DispatcherClassList dispClasses,
                            int gfID)
Determines whether a dispatcher is needed for the methods in this. If so, creates the dispatcher. If the dispatcher is for an internal generic function, then it is added to methods, otherwise the constructor for the dispatcher will generate a CSourceDispatcherClass instance and, if necessary, a CSourceDispatcherSignature instance and add them to the list of classes to be generated and to the list of inner classes for this. If no dispatcher is required then this method adds the (necessarily) single method in this group to methods. The gfID is used to give each gf's associated $body methods a unique name.


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.