public interface JavaSource
Modifier and Type | Method and Description |
---|---|
JavaClass |
getClassByName(java.lang.String name)
Try to get any class of this source by name.
|
java.util.List<JavaClass> |
getClasses()
A List with all direct classes of this source, never
null |
java.lang.String |
getClassNamePrefix()
If there's a package, return the packageName, followed by a dot, otherwise an empty String
|
java.lang.String |
getCodeBlock()
Complete code representation of this source
|
java.util.List<java.lang.String> |
getImports()
Retrieve all the import
|
ClassLibrary |
getJavaClassLibrary() |
JavaClass |
getNestedClassByName(java.lang.String name)
Try to get the JavaClass child based on its name relative to the package.
|
JavaPackage |
getPackage()
The package of this source or
null |
java.lang.String |
getPackageName()
Returns the name of the package or an empty String if there's no package
|
java.net.URL |
getURL() |
java.net.URL getURL()
JavaPackage getPackage()
null
java.util.List<java.lang.String> getImports()
null
java.util.List<JavaClass> getClasses()
null
null
java.lang.String getCodeBlock()
java.lang.String getClassNamePrefix()
JavaClass getNestedClassByName(java.lang.String name)
name
- the name of the classnull
JavaClass getClassByName(java.lang.String name)
name
- the (fully qualified) name of the classnull
ClassLibrary getJavaClassLibrary()
java.lang.String getPackageName()