public abstract class AbstractJavaSource<O extends JavaSource<O>> extends Object implements JavaSource<O>, TypeHolderSource<O>, StaticCapableSource<O>
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jdt.core.dom.BodyDeclaration |
body |
protected org.eclipse.jface.text.Document |
document |
protected JavaSource<?> |
enclosingType |
protected org.eclipse.jdt.core.dom.CompilationUnit |
unit |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJavaSource(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration body) |
protected final org.eclipse.jface.text.Document document
protected final org.eclipse.jdt.core.dom.CompilationUnit unit
protected final org.eclipse.jdt.core.dom.BodyDeclaration body
protected final JavaSource<?> enclosingType
protected AbstractJavaSource(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration body)
public JavaSource<?> getEnclosingType()
getEnclosingType in interface JavaType<O extends JavaSource<O>>getEnclosingType in interface JavaSource<O extends JavaSource<O>>public AnnotationSource<O> addAnnotation()
addAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public AnnotationSource<O> addAnnotation(Class<? extends Annotation> clazz)
addAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public AnnotationSource<O> addAnnotation(String className)
addAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public List<AnnotationSource<O>> getAnnotations()
getAnnotations in interface AnnotationTarget<O extends JavaSource<O>>getAnnotations in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public boolean hasAnnotation(Class<? extends Annotation> type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>>public boolean hasAnnotation(String type)
hasAnnotation in interface AnnotationTarget<O extends JavaSource<O>>public O removeAnnotation(Annotation<O> annotation)
removeAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public void removeAllAnnotations()
removeAllAnnotations in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public AnnotationSource<O> getAnnotation(Class<? extends Annotation> type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>>getAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public AnnotationSource<O> getAnnotation(String type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>>getAnnotation in interface AnnotationTargetSource<O extends JavaSource<O>,O extends JavaSource<O>>public Import addImport(Class<?> type)
addImport in interface Importer<O extends JavaSource<O>>public <T extends JavaType<?>> Import addImport(T type)
addImport in interface Importer<O extends JavaSource<O>>public Import addImport(Import imprt)
addImport in interface Importer<O extends JavaSource<O>>public Import addImport(String className)
addImport in interface Importer<O extends JavaSource<O>>public Import getImport(String className)
getImport in interface Importer<O extends JavaSource<O>>public Import getImport(Class<?> type)
getImport in interface Importer<O extends JavaSource<O>>public <T extends JavaType<?>> Import getImport(T type)
getImport in interface Importer<O extends JavaSource<O>>public Import getImport(Import imprt)
getImport in interface Importer<O extends JavaSource<O>>public List<Import> getImports()
getImports in interface Importer<O extends JavaSource<O>>public boolean hasImport(Class<?> type)
hasImport in interface Importer<O extends JavaSource<O>>public <T extends JavaType<T>> boolean hasImport(T type)
hasImport in interface Importer<O extends JavaSource<O>>public boolean hasImport(Import imprt)
hasImport in interface Importer<O extends JavaSource<O>>public boolean hasImport(String type)
hasImport in interface Importer<O extends JavaSource<O>>public boolean requiresImport(Class<?> type)
requiresImport in interface Importer<O extends JavaSource<O>>public boolean requiresImport(String type)
requiresImport in interface Importer<O extends JavaSource<O>>public String resolveType(String type)
resolveType in interface Importer<O extends JavaSource<O>>public O removeImport(String name)
removeImport in interface Importer<O extends JavaSource<O>>public O removeImport(Class<?> clazz)
removeImport in interface Importer<O extends JavaSource<O>>public <T extends JavaType<?>> O removeImport(T type)
removeImport in interface Importer<O extends JavaSource<O>>public O removeImport(Import imprt)
removeImport in interface Importer<O extends JavaSource<O>>protected org.eclipse.jdt.core.dom.AbstractTypeDeclaration getBodyDeclaration()
public O setName(String name)
setName in interface NamedSource<O extends JavaSource<O>>public String getCanonicalName()
getCanonicalName in interface JavaType<O extends JavaSource<O>>protected abstract O updateTypeNames(String name)
public String getQualifiedName()
getQualifiedName in interface JavaType<O extends JavaSource<O>>public String getPackage()
getPackage in interface Packaged<O extends JavaSource<O>>public O setPackage(String name)
setPackage in interface PackagedSource<O extends JavaSource<O>>public O setDefaultPackage()
setDefaultPackage in interface PackagedSource<O extends JavaSource<O>>public boolean isDefaultPackage()
isDefaultPackage in interface Packaged<O extends JavaSource<O>>public boolean isPackagePrivate()
isPackagePrivate in interface VisibilityScopedpublic O setPackagePrivate()
setPackagePrivate in interface VisibilityScopedSource<O extends JavaSource<O>>public boolean isPublic()
isPublic in interface VisibilityScopedpublic O setPublic()
setPublic in interface VisibilityScopedSource<O extends JavaSource<O>>public boolean isPrivate()
isPrivate in interface VisibilityScopedpublic O setPrivate()
setPrivate in interface VisibilityScopedSource<O extends JavaSource<O>>public boolean isProtected()
isProtected in interface VisibilityScopedpublic O setProtected()
setProtected in interface VisibilityScopedSource<O extends JavaSource<O>>public Visibility getVisibility()
getVisibility in interface VisibilityScopedpublic O setVisibility(Visibility scope)
setVisibility in interface VisibilityScopedSource<O extends JavaSource<O>>public String toUnformattedString()
toUnformattedString in interface JavaType<O extends JavaSource<O>>public Object getInternal()
getInternal in interface Internalpublic List<SyntaxError> getSyntaxErrors()
getSyntaxErrors in interface JavaType<O extends JavaSource<O>>public boolean hasSyntaxErrors()
hasSyntaxErrors in interface JavaType<O extends JavaSource<O>>public boolean isClass()
isClass in interface JavaType<O extends JavaSource<O>>public boolean isEnum()
isEnum in interface JavaType<O extends JavaSource<O>>public boolean isInterface()
isInterface in interface JavaType<O extends JavaSource<O>>public boolean isAnnotation()
isAnnotation in interface JavaType<O extends JavaSource<O>>public List<JavaSource<?>> getNestedTypes()
getNestedTypes in interface TypeHolderSource<O extends JavaSource<O>>getNestedTypes in interface TypeHolder<O extends JavaSource<O>>public boolean hasNestedType(JavaType<?> type)
hasNestedType in interface TypeHolder<O extends JavaSource<O>>public boolean hasNestedType(String name)
hasNestedType in interface TypeHolder<O extends JavaSource<O>>public boolean hasNestedType(Class<?> type)
hasNestedType in interface TypeHolder<O extends JavaSource<O>>public JavaSource<?> getNestedType(String name)
getNestedType in interface TypeHolderSource<O extends JavaSource<O>>getNestedType in interface TypeHolder<O extends JavaSource<O>>public <NESTED_TYPE extends JavaSource<?>> NESTED_TYPE addNestedType(NESTED_TYPE type)
addNestedType in interface TypeHolderSource<O extends JavaSource<O>>public O removeNestedType(JavaSource<?> type)
removeNestedType in interface TypeHolderSource<O extends JavaSource<O>>public <NESTED_TYPE extends JavaSource<?>> NESTED_TYPE addNestedType(Class<NESTED_TYPE> type)
addNestedType in interface TypeHolderSource<O extends JavaSource<O>>public <NESTED_TYPE extends JavaSource<?>> NESTED_TYPE addNestedType(String declaration)
addNestedType in interface TypeHolderSource<O extends JavaSource<O>>public JavaDocSource<O> getJavaDoc()
getJavaDoc in interface JavaDocCapable<O extends JavaSource<O>>getJavaDoc in interface JavaDocCapableSource<O extends JavaSource<O>>public O removeJavaDoc()
removeJavaDoc in interface JavaDocCapableSource<O extends JavaSource<O>>public boolean hasJavaDoc()
hasJavaDoc in interface JavaDocCapable<O extends JavaSource<O>>public boolean isStatic()
isStatic in interface StaticCapablepublic O setStatic(boolean _static)
setStatic in interface StaticCapableSource<O extends JavaSource<O>>Copyright © 2017 JBoss by Red Hat. All rights reserved.