public class JavaClassImpl extends AbstractGenericCapableJavaSource<JavaClassSource> implements JavaClassSource
body, document, enclosingType, loader, 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) |
String |
getSuperType() |
int |
hashCode() |
boolean |
isAbstract() |
JavaClassSource |
setAbstract(boolean abstrct) |
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, getTypeVariable, getTypeVariables, removeTypeVariable, removeTypeVariableaddField, addField, addInterface, addInterface, addInterface, addMethod, addMethod, getField, getFields, getInterfaces, getMembers, getMethod, getMethod, getMethod, getMethods, hasField, hasField, hasInterface, hasInterface, hasInterface, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeField, removeInterface, removeInterface, removeInterface, removeMethodaddAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInternal, getName, getNestedClasses, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hasImport, hasImport, hasImport, hasImport, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, removeAnnotation, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnclosingType, getNestedClassesgetCanonicalName, 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, hasAnnotationgetInternaladdInterface, addInterface, addInterface, removeInterface, removeInterface, removeInterfacegetInterfaces, hasInterface, hasInterface, hasInterfaceaddField, addField, getField, getFields, removeFieldhasField, hasFieldaddMethod, addMethod, getMethod, getMethod, getMethod, getMethods, removeMethodhasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignaturegetMembersaddTypeVariable, getTypeVariable, getTypeVariables, removeTypeVariable, removeTypeVariablepublic 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 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 setSuperType(String type)
setSuperType in interface ExtendableSource<JavaClassSource>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.