Package com.thoughtworks.qdox.model
Class JavaSource
java.lang.Object
com.thoughtworks.qdox.model.JavaSource
- All Implemented Interfaces:
JavaClassParent
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getFile()
Deprecated.use getURLString[]
getNestedClassByName
(String name) getURL()
resolveType
(String typeName) Resolve a type-name within the context of this source or class.void
setClassLibrary
(ClassLibrary classLibrary) void
Deprecated.use setURLvoid
setPackage
(JavaPackage packge) void
toString()
-
Constructor Details
-
JavaSource
public JavaSource() -
JavaSource
-
-
Method Details
-
setURL
- Since:
- 1.4
-
getURL
- Since:
- 1.4
-
setFile
Deprecated.use setURL -
getFile
Deprecated.use getURL -
getPackage
-
setPackage
-
addImport
-
getImports
-
addClass
- Specified by:
addClass
in interfaceJavaClassParent
-
getClasses
-
getJavaClassContext
- Specified by:
getJavaClassContext
in interfaceJavaClassParent
-
setClassLibrary
-
getCodeBlock
-
toString
-
resolveType
Description copied from interface:JavaClassParent
Resolve a type-name within the context of this source or class.- Specified by:
resolveType
in interfaceJavaClassParent
- Parameters:
typeName
- name of a type- Returns:
- the fully-qualified name of the type, or null if it cannot be resolved
-
getClassNamePrefix
- Specified by:
getClassNamePrefix
in interfaceJavaClassParent
-
getParentSource
- Specified by:
getParentSource
in interfaceJavaClassParent
-
getNestedClassByName
- Specified by:
getNestedClassByName
in interfaceJavaClassParent
-
getClassLibrary
- Returns:
-
getPackageName
-