|
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.CClass
org.multijava.mjc.CBadClass
This class represents an undefined class (something that comes from a bad classfile) This class is not usable to anything, so it will sooner or later produce a comprehensive error.
| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjc.CClass |
CClass.NoDupStrategy, CClass.Observer |
| Field Summary |
| Fields inherited from class org.multijava.mjc.CClass |
CLS_UNDEFINED, dispClassTypes, methods |
| 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 | |
CBadClass(String qualifiedName)
Constructs a class export from file |
|
| Method Summary | |
void |
collectAbstractMethods(ArrayList v)
collectAbstractMethods search for a matching method with the provided type parameters look in parent hierarchy as needed |
void |
collectInterfaceMethods(ArrayList v,
CClassType[] args)
collectInterfaceMethods search for a matching method with the provided type parameters look in parent hierarchy as needed |
boolean |
descendsFrom(CClass maybeSuper)
Indicates whether this host is a subclass of the given class, where "subclass" is the reflexive, transitive closure of the extends relation. |
void |
genClassFile(Destination destination)
Generate the code in a class file |
CMethodSet.MethodArgsPair[] |
getAbstractMethods()
Returns a list of abstract methods |
protected CField |
getDeclaredField(String ident)
Returns the signature of the field with the given name declared in this class, or null if this class does not declare a field with the given name. |
CMethodSet.MethodArgsPair[] |
getInterfaceMethods()
Returns a list of interface methods |
boolean |
isAccessibleFrom(CMemberHost from)
Indicates whether this is accessible from the given host. |
boolean |
isAnonymous()
|
boolean |
isMember()
|
CClass |
lookupClass(String name,
CContextType context)
Searches for a class with the given simple name according the procedure in JLS2 6.5.5. |
CFieldAccessor |
lookupField(String name,
CExpressionContextType context)
lookupField search for a field look in parent hierarchy as needed |
CMethodSet |
lookupMethodOrSet(String name,
CType[] params,
CContextType context)
Searches for the most specific method applicable to the given identifier and argument type tuple, in the given context, looking in parent hierarchy and augmentation map as needed. |
| Methods inherited from class org.multijava.mjc.CMember |
access, deprecated, getCCompilationUnit, getField, getIdent, getJavaName, getMethod, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, host, ident, isDeprecated, isFinal, isLocalTo, isPrivate, isProtected, isPublic, isStatic, modifiers, owner, 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 |
| Methods inherited from interface org.multijava.mjc.CMemberHost |
host, ident |
| Constructor Detail |
public CBadClass(String qualifiedName)
| Method Detail |
public boolean descendsFrom(CClass maybeSuper)
descendsFrom in interface CMemberHostdescendsFrom in class CClassmaybeSuper - the potential superclassprotected final CField getDeclaredField(String ident)
getDeclaredField in class CClasspublic boolean isAnonymous()
public boolean isMember()
CClass
public CClass lookupClass(String name,
CContextType context)
lookupClass in class CClassname - the class name, without qualifierscontext - the referencing context, used for accessibility
checks
public CMethodSet lookupMethodOrSet(String name,
CType[] params,
CContextType context)
name - method nameparams - method parameter typescontext - the context in which the method reference
should be resolved, used to identifier the
external methods augmenting this class
public CFieldAccessor lookupField(String name,
CExpressionContextType context)
lookupField in class CClassname - method namecontext - the context of the field accesspublic boolean isAccessibleFrom(CMemberHost from)
isAccessibleFrom in interface CMemberHostisAccessibleFrom in class CMemberfrom - the host that wants access
public CMethodSet.MethodArgsPair[] getInterfaceMethods()
getInterfaceMethods in class CClasspublic CMethodSet.MethodArgsPair[] getAbstractMethods()
getAbstractMethods in class CClass
public void collectInterfaceMethods(ArrayList v,
CClassType[] args)
collectInterfaceMethods in class CClasspublic void collectAbstractMethods(ArrayList v)
public void genClassFile(Destination destination)
genClassFile in class CClassdestination - the location where the class file should be
generated
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||