org.multijava.mjc
Class CAugmentationMap
java.lang.Object
org.multijava.util.Utils
org.multijava.mjc.CAugmentationMap
- All Implemented Interfaces:
- Cloneable
- public class CAugmentationMap
- extends Utils
This class implements a function mapping from classes and contexts
to method sets, CAugmentationMap: CClass x CContextType ->
CMethodSet. It is used to store the set of methods
augmenting a class in a given context. The map is stored as a
member of a CClass instance and so directly maps contexts to
methods sets.
- See Also:
CClass,
CCompilationUnitContextType,
CMethodSet
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backingMap
private CAugmentationMap.ContextMap backingMap
CAugmentationMap
public CAugmentationMap()
getAddedMethods
public CMethodSet getAddedMethods(CCompilationUnitContextType context)
- Given a context, returns the corresponding set of external methods.
- Parameters:
context - the context for which to find the method set
- Returns:
- the external methods
addMethod
public void addMethod(CMethod m,
CCompilationUnitContextType context)
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.