|
JML | ||||||||||
| 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.CMember
org.multijava.mjc.CMethod
org.multijava.mjc.CSourceMethod
org.multijava.mjc.CSourceRedirectorMethod
This class represents a redirector method for a pleomorphic method that belongs to an internal and external generic function.
| Field Summary | |
private CMethod |
target
The target method of this redirector. |
private TokenReference |
where
The location in the source code that caused this redirector to be generated. |
| Fields inherited from class org.multijava.mjc.CSourceMethod |
|
| Fields inherited from class org.multijava.mjc.CMethod |
declarationContext, generatefrom, needsPrivacyModifierRemoved, specArgs, synthetic, topConcreteMethod |
| Fields inherited from class org.multijava.mjc.CMember |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
private |
CSourceRedirectorMethod(CClass owner,
CMemberHost host,
long modifiers,
String ident,
CType returnType,
CSpecializedType[] paramTypes,
CClassType[] exceptions,
boolean deprecated,
JBlock body,
CContextType declarationContext)
Constructs a redirector method. |
|
CSourceRedirectorMethod(CMethod target,
TokenReference where,
CContextType context)
Constructs a redirector for the given method, assuming the given declaration context. |
|
CSourceRedirectorMethod(CSourceMethod target,
TokenReference where)
Constructs a redirector for the given source method. |
| Method Summary | |
ArrayList |
genMethodInfo()
Overrides superclass method so that the redirection code will be generated for this method, even though body is
null. |
protected void |
plantBodyBytecode(CodeSequence code)
Plants the bytecode for the body of this method. |
String |
toString()
Returns a string representation of this grouped multimethod. |
| Methods inherited from class org.multijava.mjc.CMember |
access, deprecated, getCClass, getCCompilationUnit, getField, getIdent, getJavaName, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, hasProtectedVisibilityIn, host, ident, isAccessibleFrom, isDeprecated, isFinal, isLocalTo, isPrivate, isProtected, isPublic, isStatic, modifiers, owner, qualifiedName, setModifiers |
| 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private CMethod target
private TokenReference where
| Constructor Detail |
public CSourceRedirectorMethod(CMethod target,
TokenReference where,
CContextType context)
public CSourceRedirectorMethod(CSourceMethod target,
TokenReference where)
private CSourceRedirectorMethod(CClass owner,
CMemberHost host,
long modifiers,
String ident,
CType returnType,
CSpecializedType[] paramTypes,
CClassType[] exceptions,
boolean deprecated,
JBlock body,
CContextType declarationContext)
owner - the owner of this methodhost - the lexical host for the decl of this methodmodifiers - the modifiers on this methodident - the ident of this methodreturnType - the return type of this methodparamTypes - the parameter types of this methodexceptions - a list of all exceptions in the throws listdeprecated - is this method deprecatedbody - the dispatching source codedeclarationContext - the context in which this is declared| Method Detail |
public String toString()
toString in class CSourceMethodpublic ArrayList genMethodInfo()
body is
null.
genMethodInfo in class CSourceMethodprotected void plantBodyBytecode(CodeSequence code)
genCode() so subclasses may replace standard
body bytecode with specialized code.
plantBodyBytecode in class CSourceMethod#genCode()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||