com.thoughtworks.qdox.model
Class JavaSource

java.lang.Object
  extended bycom.thoughtworks.qdox.model.JavaSource
All Implemented Interfaces:
JavaClassParent, java.io.Serializable

public class JavaSource
extends java.lang.Object
implements java.io.Serializable, JavaClassParent

See Also:
Serialized Form

Constructor Summary
JavaSource()
           
 
Method Summary
 void addClass(JavaClass imp)
           
 void addImport(java.lang.String imp)
           
 JavaClass[] getClasses()
           
 ClassLibrary getClassLibrary()
           
 java.lang.String getClassNamePrefix()
           
 java.io.File getFile()
          Deprecated. use getURL
 java.lang.String[] getImports()
           
 java.lang.String getPackage()
           
 JavaSource getParentSource()
           
 java.net.URL getURL()
           
 java.lang.String resolveType(java.lang.String typeName)
          Resolve a type-name within the context of this source or class.
 void setClassLibrary(ClassLibrary classLibrary)
           
 void setFile(java.io.File file)
          Deprecated. use setURL
 void setPackage(java.lang.String packge)
           
 void setURL(java.net.URL url)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaSource

public JavaSource()
Method Detail

setURL

public void setURL(java.net.URL url)
Since:
1.4

getURL

public java.net.URL getURL()
Since:
1.4

setFile

public void setFile(java.io.File file)
Deprecated. use setURL


getFile

public java.io.File getFile()
Deprecated. use getURL


getPackage

public java.lang.String getPackage()

setPackage

public void setPackage(java.lang.String packge)

addImport

public void addImport(java.lang.String imp)

getImports

public java.lang.String[] getImports()

addClass

public void addClass(JavaClass imp)
Specified by:
addClass in interface JavaClassParent

getClasses

public JavaClass[] getClasses()

getClassLibrary

public ClassLibrary getClassLibrary()
Specified by:
getClassLibrary in interface JavaClassParent

setClassLibrary

public void setClassLibrary(ClassLibrary classLibrary)

toString

public java.lang.String toString()

resolveType

public java.lang.String resolveType(java.lang.String typeName)
Description copied from interface: JavaClassParent
Resolve a type-name within the context of this source or class.

Specified by:
resolveType in interface JavaClassParent
Parameters:
typeName - name of a type
Returns:
the fully-qualified name of the type, or null if it cannot be resolved

getClassNamePrefix

public java.lang.String getClassNamePrefix()
Specified by:
getClassNamePrefix in interface JavaClassParent

getParentSource

public JavaSource getParentSource()
Specified by:
getParentSource in interface JavaClassParent


Copyright © 2002-2004 ThoughtWorks, Inc. All Rights Reserved.