|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.sourceModel.JavaModel
This class can almost be thought of as a GlobalDictionary containing a reference to all know JavaClassDefs. There are many things that you would wish to ask of class, but you need a context of the JavaModel to get the answers. For example, if I wanted to getRelations() from a class, I can only return those related classes which are found in this model. If a class has a relation to class not found in this JavaModel, it won't be part of the getRelations() answer.
JavaClassDef
,
JavaClassInfo
Constructor Summary | |
JavaModel()
|
Method Summary | |
void |
addJavaDef(JavaClassDef def)
Add a new JavaClassDef to the our JavaModel. |
boolean |
contains(JavaClassInfo info)
Doe the 'info' already exist in this model. |
JavaClassInfo |
findIdentifier(java.lang.String className,
JavaClassDef context)
Try to find a 'JavaClassInfo' for the specified identifier. |
java.util.Vector |
getAllClassInfo()
We could probably go stright to the javaInfos hashtable, but that may not be current??? Is this true? |
java.util.Vector |
getAllRelations()
Like getRelations except it will return all of the relations found in the current model. |
JavaRelation |
getBackRelation(JavaClassInfo source,
JavaClassInfo type)
|
java.util.Enumeration |
getClassNames()
|
java.util.Vector |
getDependentClasses(JavaClassInfo info)
Return a vector containing 'JavaClassInfo's for the classes in this model interacting or relating to this class. |
JavaClassDef |
getJavaClassDef(java.lang.String className)
A single java file can have only 1 public class. |
JavaClassInfo |
getJavaClassInfo(java.lang.String fullName)
|
java.util.Vector |
getKnownInterfaces(JavaClassInfo info)
Return a vector containing 'JavaClassInfo's for the interfaces in this model that are implemented by this class. |
java.util.Vector |
getRelatedClasses(JavaClassInfo info)
Return a vector containing 'JavaClassInfo's for the classes in this model relating to the specified argument. |
java.util.Vector |
getRelations(JavaClassInfo info)
|
boolean |
hasImplemented(JavaClassInfo info,
java.lang.String interfaceName)
Should eventually be expanded to check all the known super classes. |
void |
removeJavaDef(JavaClassDef def)
Remove the JavaClassDef from the JavaModel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaModel()
Method Detail |
public void addJavaDef(JavaClassDef def)
JavaClassDef
public boolean contains(JavaClassInfo info)
public JavaClassInfo findIdentifier(java.lang.String className, JavaClassDef context)
getJavaClassInfo(String)
public java.util.Vector getAllClassInfo()
public java.util.Vector getAllRelations()
public JavaRelation getBackRelation(JavaClassInfo source, JavaClassInfo type)
JavaClassInfo
public java.util.Enumeration getClassNames()
public java.util.Vector getDependentClasses(JavaClassInfo info)
JavaClassInfo
public JavaClassDef getJavaClassDef(java.lang.String className)
public JavaClassInfo getJavaClassInfo(java.lang.String fullName)
fullName
- The full class name. This includes package name.
This classes full name is 'com.objectwave.sourceModel.JavaModel'
JavaClassInfo
public java.util.Vector getKnownInterfaces(JavaClassInfo info)
JavaClassInfo
public java.util.Vector getRelatedClasses(JavaClassInfo info)
JavaClassInfo
public java.util.Vector getRelations(JavaClassInfo info)
public boolean hasImplemented(JavaClassInfo info, java.lang.String interfaceName)
JavaClassInfo
public void removeJavaDef(JavaClassDef def)
JavaClassDef
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |