com.objectwave.sourceModel
Class JavaClassInfo
java.lang.Object
|
+--com.objectwave.sourceModel.JavaClassInfo
- public class JavaClassInfo
- extends java.lang.Object
Created:
- Author:
- Dave Hoag
For: ObjectWave Corporation
BIG QUESTION: Do we need to cache the information this finds? No need to
Identify the elements of this class spec over and over, just keep the results
in the class info object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theSpec
public ClassSpec theSpec
notParsed
protected boolean notParsed
methodSignature
public static java.util.Hashtable methodSignature
primitiveTypes
public static java.util.Hashtable primitiveTypes
JavaClassInfo
public JavaClassInfo(ClassSpec spec)
getClassName
public java.lang.String getClassName()
getClassSpec
public ClassSpec getClassSpec()
getDependentClasses
public java.lang.String[] getDependentClasses()
getExtendedClass
public java.lang.String getExtendedClass()
getFullClassName
public java.lang.String getFullClassName()
getImplementors
public java.lang.String[] getImplementors()
getInnerClasses
public JavaClassInfo[] getInnerClasses()
getJavaClassDef
public JavaClassDef getJavaClassDef()
getMethodDefinitions
public MethodDef[] getMethodDefinitions()
getMethodRelations
public java.lang.String[] getMethodRelations()
getModifiers
public java.lang.String getModifiers()
getObjectInitializers
public PackageDef[] getObjectInitializers()
getPossibleRelationships
public java.util.Vector getPossibleRelationships()
getScope
public java.lang.String getScope()
getStaticInitializers
public PackageDef[] getStaticInitializers()
getVariableDef
public VariableDef getVariableDef(java.lang.String name)
getVariableDefinitions
public VariableDef[] getVariableDefinitions()
getVariableRelations
public java.lang.String[] getVariableRelations()
hasImplemented
public boolean hasImplemented(java.lang.String interfaceName)
- Should probably be expaned to determine the entire namespace of the
interface name. In fact, it should probably be required that the parameter
of the this method is a fully qualified interface name.
isInterfaceDef
public boolean isInterfaceDef()
isPrimitiveType
public boolean isPrimitiveType(java.lang.String type)
parseIt
protected void parseIt()
reparse
public void reparse()
- Mark this class for parsing.
When we are busy generating code and attributes for this class we
may need to reparse the class elements.
setClassSpec
public void setClassSpec(ClassSpec spec)
setJavaClassDef
public void setJavaClassDef(JavaClassDef def)
setVars
protected void setVars(java.util.Vector vars)
uniqueValuesOnly
protected void uniqueValuesOnly(java.util.Vector v,
java.lang.String newStr)