public class JavaPackageInfoImpl extends Object implements JavaPackageInfoSource
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jface.text.Document |
document |
protected JavaSource<?> |
enclosingType |
static ServiceLoader<WildcardImportResolver> |
loader |
protected org.eclipse.jdt.core.dom.ASTNode |
pkg |
protected org.eclipse.jdt.core.dom.CompilationUnit |
unit |
| Constructor and Description |
|---|
JavaPackageInfoImpl(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.PackageDeclaration pkg) |
protected final org.eclipse.jface.text.Document document
protected final org.eclipse.jdt.core.dom.CompilationUnit unit
protected final org.eclipse.jdt.core.dom.ASTNode pkg
protected final JavaSource<?> enclosingType
public static ServiceLoader<WildcardImportResolver> loader
public JavaPackageInfoImpl(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.PackageDeclaration pkg)
public JavaSource<?> getEnclosingType()
getEnclosingType in interface JavaType<JavaPackageInfoSource>getEnclosingType in interface JavaSource<JavaPackageInfoSource>public AnnotationSource<JavaPackageInfoSource> addAnnotation()
addAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public AnnotationSource<JavaPackageInfoSource> addAnnotation(Class<? extends Annotation> clazz)
addAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public AnnotationSource<JavaPackageInfoSource> addAnnotation(String className)
addAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public List<AnnotationSource<JavaPackageInfoSource>> getAnnotations()
getAnnotations in interface AnnotationTarget<JavaPackageInfoSource>getAnnotations in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public boolean hasAnnotation(Class<? extends Annotation> type)
hasAnnotation in interface AnnotationTarget<JavaPackageInfoSource>public boolean hasAnnotation(String type)
hasAnnotation in interface AnnotationTarget<JavaPackageInfoSource>public JavaPackageInfoSource removeAnnotation(Annotation<JavaPackageInfoSource> annotation)
removeAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public AnnotationSource<JavaPackageInfoSource> getAnnotation(Class<? extends Annotation> type)
getAnnotation in interface AnnotationTarget<JavaPackageInfoSource>getAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public AnnotationSource<JavaPackageInfoSource> getAnnotation(String type)
getAnnotation in interface AnnotationTarget<JavaPackageInfoSource>getAnnotation in interface AnnotationTargetSource<JavaPackageInfoSource,JavaPackageInfoSource>public Import addImport(Class<?> type)
addImport in interface Importer<JavaPackageInfoSource>public <T extends JavaType<?>> Import addImport(T type)
addImport in interface Importer<JavaPackageInfoSource>public Import addImport(Import imprt)
addImport in interface Importer<JavaPackageInfoSource>public Import addImport(String className)
addImport in interface Importer<JavaPackageInfoSource>public Import getImport(String className)
getImport in interface Importer<JavaPackageInfoSource>public Import getImport(Class<?> type)
getImport in interface Importer<JavaPackageInfoSource>public <T extends JavaType<?>> Import getImport(T type)
getImport in interface Importer<JavaPackageInfoSource>public Import getImport(Import imprt)
getImport in interface Importer<JavaPackageInfoSource>public List<Import> getImports()
getImports in interface Importer<JavaPackageInfoSource>public boolean hasImport(Class<?> type)
hasImport in interface Importer<JavaPackageInfoSource>public <T extends JavaType<T>> boolean hasImport(T type)
hasImport in interface Importer<JavaPackageInfoSource>public boolean hasImport(Import imprt)
hasImport in interface Importer<JavaPackageInfoSource>public boolean hasImport(String type)
hasImport in interface Importer<JavaPackageInfoSource>public boolean requiresImport(Class<?> type)
requiresImport in interface Importer<JavaPackageInfoSource>public boolean requiresImport(String type)
requiresImport in interface Importer<JavaPackageInfoSource>public String resolveType(String type)
resolveType in interface Importer<JavaPackageInfoSource>public JavaPackageInfoSource removeImport(String name)
removeImport in interface Importer<JavaPackageInfoSource>public JavaPackageInfoSource removeImport(Class<?> clazz)
removeImport in interface Importer<JavaPackageInfoSource>public <T extends JavaType<?>> JavaPackageInfoSource removeImport(T type)
removeImport in interface Importer<JavaPackageInfoSource>public JavaPackageInfoSource removeImport(Import imprt)
removeImport in interface Importer<JavaPackageInfoSource>protected org.eclipse.jdt.core.dom.PackageDeclaration getPackageDeclaration()
public JavaPackageInfoSource setName(String name)
setName in interface NamedSource<JavaPackageInfoSource>public String getCanonicalName()
getCanonicalName in interface JavaType<JavaPackageInfoSource>public String getQualifiedName()
getQualifiedName in interface JavaType<JavaPackageInfoSource>public String getPackage()
getPackage in interface Packaged<JavaPackageInfoSource>public JavaPackageInfoSource setPackage(String name)
setPackage in interface PackagedSource<JavaPackageInfoSource>public JavaPackageInfoSource setDefaultPackage()
setDefaultPackage in interface PackagedSource<JavaPackageInfoSource>public boolean isDefaultPackage()
isDefaultPackage in interface Packaged<JavaPackageInfoSource>public boolean isPackagePrivate()
isPackagePrivate in interface VisibilityScopedpublic JavaPackageInfoSource setPackagePrivate()
setPackagePrivate in interface VisibilityScopedSource<JavaPackageInfoSource>public boolean isPublic()
isPublic in interface VisibilityScopedpublic JavaPackageInfoSource setPublic()
setPublic in interface VisibilityScopedSource<JavaPackageInfoSource>public boolean isPrivate()
isPrivate in interface VisibilityScopedpublic JavaPackageInfoSource setPrivate()
setPrivate in interface VisibilityScopedSource<JavaPackageInfoSource>public boolean isProtected()
isProtected in interface VisibilityScopedpublic JavaPackageInfoSource setProtected()
setProtected in interface VisibilityScopedSource<JavaPackageInfoSource>public Visibility getVisibility()
getVisibility in interface VisibilityScopedpublic JavaPackageInfoSource setVisibility(Visibility scope)
setVisibility in interface VisibilityScopedSource<JavaPackageInfoSource>public Object getInternal()
getInternal in interface Internalpublic JavaPackageInfoSource getOrigin()
getOrigin in interface Origin<JavaPackageInfoSource>public List<SyntaxError> getSyntaxErrors()
getSyntaxErrors in interface JavaType<JavaPackageInfoSource>public boolean hasSyntaxErrors()
hasSyntaxErrors in interface JavaType<JavaPackageInfoSource>public boolean isClass()
isClass in interface JavaType<JavaPackageInfoSource>public boolean isEnum()
isEnum in interface JavaType<JavaPackageInfoSource>public boolean isInterface()
isInterface in interface JavaType<JavaPackageInfoSource>public boolean isAnnotation()
isAnnotation in interface JavaType<JavaPackageInfoSource>public List<JavaSource<?>> getNestedClasses()
getNestedClasses in interface JavaType<JavaPackageInfoSource>getNestedClasses in interface JavaSource<JavaPackageInfoSource>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.