DefaultJavaSource
public interface JavaSource
Modifier and Type | Method | Description |
---|---|---|
JavaClass |
getClassByName(String name) |
Try to get any class of this source by name.
|
List<JavaClass> |
getClasses() |
A List with all direct classes of this source, never
null |
String |
getClassNamePrefix() |
If there's a package, return the packageName, followed by a dot, otherwise an empty String
|
String |
getCodeBlock() |
Complete code representation of this source
|
List<String> |
getImports() |
Retrieve all the import
|
ClassLibrary |
getJavaClassLibrary() |
|
JavaClass |
getNestedClassByName(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 |
String |
getPackageName() |
Returns the name of the package or an empty String if there's no package
|
URL |
getURL() |
URL getURL()
JavaPackage getPackage()
null
List<JavaClass> getClasses()
null
null
String getCodeBlock()
String getClassNamePrefix()
JavaClass getNestedClassByName(String name)
name
- the name of the classnull
JavaClass getClassByName(String name)
name
- the (fully qualified) name of the classnull
ClassLibrary getJavaClassLibrary()
String getPackageName()
Copyright © 2002–2018. All rights reserved.