public interface JavaSource<T extends JavaSource<T>> extends JavaType<T>, PackagedSource<T>, Importer<T>, NamedSource<T>, VisibilityScopedSource<T>, AnnotationTargetSource<T,T>
| Modifier and Type | Method and Description |
|---|---|
JavaSource<?> |
getEnclosingType()
Return the enclosing
JavaType type in which this class is defined. |
List<JavaSource<?>> |
getNestedClasses()
|
getCanonicalName, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterfacesetDefaultPackage, setPackagegetPackage, isDefaultPackageaddImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveTypesetNamesetPackagePrivate, setPrivate, setProtected, setPublic, setVisibilitygetVisibility, isPackagePrivate, isPrivate, isProtected, isPublicaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, removeAnnotationhasAnnotation, hasAnnotationgetInternalJavaSource<?> getEnclosingType()
JavaTypeJavaType type in which this class is defined. If this class is a top-level
type, and is not a nested type, this object will return itself.getEnclosingType in interface JavaType<T extends JavaSource<T>>List<JavaSource<?>> getNestedClasses()
JavaSource instances for each nested Class declaration found within
this. Any modification of returned JavaSource instances will result in modification of the
contents contained by this the parent instance.getNestedClasses in interface JavaType<T extends JavaSource<T>>Copyright © 2014 JBoss by Red Hat. All rights reserved.