|
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.CMember
org.multijava.mjc.CClass
org.multijava.mjc.CBinaryClass
This class represents a class read from a *.class file. It is primarily just a data structure, apart from methods for generating the qualified name and for determining whether the member is accessible from some class.
CMember| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjc.CClass |
CClass.NoDupStrategy, CClass.Observer |
| Field Summary | |
protected CClassContextType |
declContext
This declaration context is used in top method searches. |
private boolean |
isAnonymous
Indicates whether the class represented by this is anonymous. |
private boolean |
isMember
Indicates whether the class represented by this is a member type. |
private boolean |
universeRuntimeSupport
AHS: indicates if the class has been compiled with runtime support enabled. |
private String |
universeVersion
AHS: The version of the encoding used to encode the universe type modifiers. |
| 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 | |
|
CBinaryClass(Main compiler,
ClassInfo classInfo)
Constructs a class export from file. |
protected |
CBinaryClass(Main compiler,
ClassInfo classInfo,
ClassCreator creator,
SignatureParser signatureparser)
Constructs a class export from file. |
| Method Summary | |
void |
checkTypes(CField field,
CType fieldtype,
CContextType context)
|
void |
checkTypes(CMethod method,
CContextType context)
|
CExtendedClassContext |
createExtendedClassContext(CContextType parent,
CTypeVariable[] tvs)
|
private static CMemberHost |
getHostFrom(String clazz)
Returns the host for the class named by the argument. |
private static CClass |
getOuterClassFrom(String clazz)
Returns the surrounding class for the inner class named by the argument. |
String |
getUniverseVersion()
Return the version of the encoding used to encode the universe type modifiers. |
boolean |
hasUniverseRuntimeSupport()
Return true if the class was compiled with run-time support enabled. |
boolean |
isAnonymous()
|
boolean |
isMember()
Indicates whether the class represented by this is a member type. |
protected CClassType[] |
loadInterfaces(String[] interfaces)
Loads the interfaces specified by the Strings in the argument array (whether from other declarations in this compilation pass or from *.class files.) |
protected void |
processInnerClassesAttr(InnerClassInfo[] inners)
Loads the inner classes specified by the info in the argument array (whether from other declarations in this compilation pass or from *.class files.) |
protected void |
registerInstanceWithCache()
Adds this instance to the appropriate cache to prevent an infinite regress if the initialization of this results in another request to re-read the class file. |
| Methods inherited from class org.multijava.mjc.CMember |
access, addModifiers, deprecated, getCCompilationUnit, getField, getIdent, getJavaName, getMethod, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, host, ident, isAccessibleFrom, isDeclaredNonNull, 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, isAccessibleFrom |
| Field Detail |
private boolean isAnonymous
private boolean isMember
protected final CClassContextType declContext
private String universeVersion
private boolean universeRuntimeSupport
| Constructor Detail |
public CBinaryClass(Main compiler,
ClassInfo classInfo)
protected CBinaryClass(Main compiler,
ClassInfo classInfo,
ClassCreator creator,
SignatureParser signatureparser)
| Method Detail |
public CExtendedClassContext createExtendedClassContext(CContextType parent,
CTypeVariable[] tvs)
protected void registerInstanceWithCache()
public void checkTypes(CMethod method,
CContextType context)
throws UnpositionedError
UnpositionedError
public void checkTypes(CField field,
CType fieldtype,
CContextType context)
throws UnpositionedError
UnpositionedErrorprotected CClassType[] loadInterfaces(String[] interfaces)
interfaces - the names of the interfaces to load
protected final void processInnerClassesAttr(InnerClassInfo[] inners)
inners - the info of the inner classes to loadprivate static CClass getOuterClassFrom(String clazz)
clazz - the name of the inner class
private static CMemberHost getHostFrom(String clazz)
clazz - the name of the class
public boolean isAnonymous()
public boolean isMember()
public String getUniverseVersion()
getUniverseVersion in class CClasspublic boolean hasUniverseRuntimeSupport()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||