public class JavaClassImpl extends AbstractGenericCapableJavaSource<JavaClassSource> implements JavaClassSource
body, document, enclosingType, unit| Constructor and Description |
|---|
JavaClassImpl(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration body) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
JavaClassSource |
extendSuperType(Class<?> type) |
JavaClassSource |
extendSuperType(JavaClass<?> type) |
String |
getSuperType() |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isLocalClass() |
JavaClassSource |
setAbstract(boolean abstrct) |
JavaClassSource |
setFinal(boolean finl) |
JavaClassSource |
setSuperType(Class<?> type) |
JavaClassSource |
setSuperType(JavaType<?> type) |
JavaClassSource |
setSuperType(String type) |
protected JavaClassSource |
updateTypeNames(String newName)
Call-back to allow updating of any necessary internal names with the given name.
|
addTypeVariable, addTypeVariable, getTypeVariable, getTypeVariables, hasTypeVariable, removeTypeVariable, removeTypeVariableaddField, addField, addInterface, addInterface, addInterface, addMethod, addMethod, addMethod, addMethod, addProperty, addProperty, addProperty, getField, getFields, getInterfaces, getMembers, getMethod, getMethod, getMethod, getMethods, getProperties, getProperties, getProperty, hasField, hasField, hasInterface, hasInterface, hasInterface, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasProperty, hasProperty, implementInterface, implementInterface, removeField, removeInterface, removeInterface, removeInterface, removeMethod, removePropertyaddAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, addImport, addNestedType, addNestedType, addNestedType, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInternal, getJavaDoc, getName, getNestedType, getNestedTypes, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hasImport, hasImport, hasImport, hasImport, hasJavaDoc, hasNestedType, hasNestedType, hasNestedType, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAllAnnotations, removeAnnotation, removeImport, removeImport, removeImport, removeImport, removeJavaDoc, removeNestedType, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setStatic, setVisibility, toString, toUnformattedStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnclosingTypegetCanonicalName, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterface, toUnformattedStringsetDefaultPackage, setPackagegetPackage, isDefaultPackageaddImport, addImport, 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, removeAllAnnotations, removeAnnotationhasAnnotation, hasAnnotationgetInternalgetJavaDoc, removeJavaDochasJavaDocaddInterface, addInterface, addInterface, implementInterface, implementInterface, removeInterface, removeInterface, removeInterfaceaddTypeVariable, addTypeVariable, getTypeVariable, getTypeVariables, removeTypeVariable, removeTypeVariablehasTypeVariableaddProperty, addProperty, addProperty, getProperties, getProperties, getProperty, removePropertyhasProperty, hasPropertyaddMethod, addMethod, addMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethodhasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignatureaddField, addField, getField, getFields, removeFieldhasField, hasFieldgetMembersaddNestedType, addNestedType, addNestedType, getNestedType, getNestedTypes, removeNestedTypehasNestedType, hasNestedType, hasNestedTypesetStaticisStaticpublic JavaClassImpl(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration body)
protected JavaClassSource updateTypeNames(String newName)
AbstractJavaSourceupdateTypeNames in class AbstractJavaSource<JavaClassSource>public boolean isAbstract()
isAbstract in interface Abstractable<JavaClassSource>public JavaClassSource setAbstract(boolean abstrct)
setAbstract in interface AbstractableSource<JavaClassSource>public boolean isFinal()
isFinal in interface FinalCapablepublic JavaClassSource setFinal(boolean finl)
setFinal in interface FinalCapableSource<JavaClassSource>public boolean isLocalClass()
isLocalClass in interface JavaClass<JavaClassSource>public int hashCode()
hashCode in class AbstractJavaSource<JavaClassSource>public boolean equals(Object obj)
equals in class AbstractJavaSource<JavaClassSource>public String getSuperType()
getSuperType in interface Extendable<JavaClassSource>public JavaClassSource setSuperType(JavaType<?> type)
setSuperType in interface ExtendableSource<JavaClassSource>public JavaClassSource setSuperType(Class<?> type)
setSuperType in interface ExtendableSource<JavaClassSource>public JavaClassSource extendSuperType(Class<?> type)
extendSuperType in interface ExtendableSource<JavaClassSource>public JavaClassSource extendSuperType(JavaClass<?> type)
extendSuperType in interface ExtendableSource<JavaClassSource>public JavaClassSource setSuperType(String type)
setSuperType in interface ExtendableSource<JavaClassSource>Copyright © 2017 JBoss by Red Hat. All rights reserved.