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.

Field Summary
static java.util.Hashtable methodSignature
           
protected  boolean notParsed
           
static java.util.Hashtable primitiveTypes
           
 ClassSpec theSpec
           
 
Constructor Summary
JavaClassInfo(ClassSpec spec)
           
 
Method Summary
 java.lang.String getClassName()
           
 ClassSpec getClassSpec()
           
 java.lang.String[] getDependentClasses()
           
 java.lang.String getExtendedClass()
           
 java.lang.String getFullClassName()
           
 java.lang.String[] getImplementors()
           
 JavaClassInfo[] getInnerClasses()
           
 JavaClassDef getJavaClassDef()
           
 MethodDef[] getMethodDefinitions()
           
 java.lang.String[] getMethodRelations()
           
 java.lang.String getModifiers()
           
 PackageDef[] getObjectInitializers()
           
 java.util.Vector getPossibleRelationships()
           
 java.lang.String getScope()
           
 PackageDef[] getStaticInitializers()
           
 VariableDef getVariableDef(java.lang.String name)
           
 VariableDef[] getVariableDefinitions()
           
 java.lang.String[] getVariableRelations()
           
 boolean hasImplemented(java.lang.String interfaceName)
          Should probably be expaned to determine the entire namespace of the interface name.
 boolean isInterfaceDef()
           
 boolean isPrimitiveType(java.lang.String type)
           
protected  void parseIt()
           
 void reparse()
          Mark this class for parsing.
 void setClassSpec(ClassSpec spec)
           
 void setJavaClassDef(JavaClassDef def)
           
protected  void setVars(java.util.Vector vars)
           
protected  void uniqueValuesOnly(java.util.Vector v, java.lang.String newStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theSpec

public ClassSpec theSpec

notParsed

protected boolean notParsed

methodSignature

public static java.util.Hashtable methodSignature

primitiveTypes

public static java.util.Hashtable primitiveTypes
Constructor Detail

JavaClassInfo

public JavaClassInfo(ClassSpec spec)
Method Detail

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)