org.multijava.mjc
Class JTypeDeclaration.MethodList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.multijava.mjc.JTypeDeclaration.MethodList
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- Enclosing class:
- JTypeDeclaration
- class JTypeDeclaration.MethodList
- extends ArrayList
| Fields inherited from class java.util.ArrayList |
|
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
JTypeDeclaration.MethodList
JTypeDeclaration.MethodList(int initialCapacity)
addMethod
boolean addMethod(JTypeDeclaration.MethodRecord m)
getMethod
JTypeDeclaration.MethodRecord getMethod(int index)
methodArray
CSourceMethod[] methodArray()
methodArray
void methodArray(CSourceMethod[] dst,
int offset)
addAppropriateMethodTo
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.
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.