|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CAugmentationMap
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.
CClass,
CCompilationUnitContextType,
CMethodSet| Nested Class Summary | |
(package private) static class |
CAugmentationMap.ContextMap
|
| Field Summary | |
private CAugmentationMap.ContextMap |
backingMap
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
CAugmentationMap()
|
|
| Method Summary | |
void |
addMethod(CMethod m,
CCompilationUnitContextType context)
|
CMethodSet |
getAddedMethods(CCompilationUnitContextType context)
Given a context, returns the corresponding set of external methods. |
| 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 |
| Field Detail |
private CAugmentationMap.ContextMap backingMap
| Constructor Detail |
public CAugmentationMap()
| Method Detail |
public CMethodSet getAddedMethods(CCompilationUnitContextType context)
context - the context for which to find the method set
public void addMethod(CMethod m,
CCompilationUnitContextType context)
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||