public interface JavaSource extends JavaClassParent
Modifier and Type | Method and 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() |
String |
resolveCanonicalName(String name) |
String |
resolveFullyQualifiedName(String name) |
String |
resolveType(String typeName)
Deprecated.
use
resolveCanonicalName(String) or resolveFullyQualifiedName(String) instead |
getParentSource
URL getURL()
JavaPackage getPackage()
null
List<JavaClass> getClasses()
null
null
String getCodeBlock()
String resolveType(String typeName)
JavaClassParent
resolveType
in interface JavaClassParent
typeName
- name of a typeString resolveCanonicalName(String name)
resolveCanonicalName
in interface JavaClassParent
name
- the simple name or canonical name of a classnull
String resolveFullyQualifiedName(String name)
resolveFullyQualifiedName
in interface JavaClassParent
name
- the simple name or canonical name of a classnull
String getClassNamePrefix()
JavaClass getNestedClassByName(String name)
getNestedClassByName
in interface JavaClassParent
null
JavaClass getClassByName(String name)
name
- the (fully qualified) name of the classnull
ClassLibrary getJavaClassLibrary()
getJavaClassLibrary
in interface JavaClassParent
String getPackageName()
Copyright © 2002–2016. All rights reserved.