public class JavaClassImpl extends AbstractGenericCapableJavaSource<JavaClass> implements JavaClass
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) |
SourceType |
getSourceType() |
String |
getSuperType() |
int |
hashCode() |
boolean |
isAbstract() |
JavaClass |
setAbstract(boolean abstrct) |
JavaClass |
setSuperType(Class<?> type) |
JavaClass |
setSuperType(JavaClass type) |
JavaClass |
setSuperType(String type) |
protected JavaClass |
updateTypeNames(String newName)
Call-back to allow updating of any necessary internal names with the given name.
|
addGenericType, getGenericTypes, removeGenericTypeaddField, addField, addMethod, addMethod, getField, getFields, getMembers, getMethod, getMethod, getMethod, getMethods, hasField, hasField, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeField, removeMethodaddAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, addInterface, addInterface, addInterface, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInterfaces, getInternal, getName, getNestedClasses, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hasImport, hasImport, hasImport, hasImport, hasInterface, hasInterface, hasInterface, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, removeAnnotation, removeImport, removeImport, removeImport, removeImport, removeInterface, removeInterface, removeInterface, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCanonicalName, getEnclosingType, getNestedClasses, getQualifiedName, getSyntaxErrors, hasSyntaxErrors, isAnnotation, isClass, isEnum, isInterfacegetPackage, isDefaultPackage, setDefaultPackage, setPackageaddImport, addImport, addImport, addImport, getImport, getImport, getImport, getImport, getImports, hasImport, hasImport, hasImport, hasImport, removeImport, removeImport, removeImport, removeImport, requiresImport, requiresImport, resolveTypegetVisibility, isPackagePrivate, isPrivate, isProtected, isPublic, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibilityaddAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotationgetInternaladdInterface, addInterface, addInterface, getInterfaces, hasInterface, hasInterface, hasInterface, removeInterface, removeInterface, removeInterfaceaddField, addField, getField, getFields, hasField, hasField, removeFieldaddMethod, addMethod, getMethod, getMethod, getMethod, getMethods, hasMethod, hasMethodSignature, hasMethodSignature, hasMethodSignature, hasMethodSignature, removeMethodgetMembersaddGenericType, getGenericTypes, removeGenericTypepublic JavaClassImpl(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration body)
protected JavaClass updateTypeNames(String newName)
AbstractJavaSourceupdateTypeNames in class AbstractJavaSource<JavaClass>public boolean isAbstract()
isAbstract in interface Abstractable<JavaClass>public JavaClass setAbstract(boolean abstrct)
setAbstract in interface Abstractable<JavaClass>public int hashCode()
hashCode in class AbstractJavaSource<JavaClass>public boolean equals(Object obj)
equals in class AbstractJavaSource<JavaClass>public String getSuperType()
getSuperType in interface Extendable<JavaClass>public JavaClass setSuperType(JavaClass type)
setSuperType in interface Extendable<JavaClass>public JavaClass setSuperType(Class<?> type)
setSuperType in interface Extendable<JavaClass>public JavaClass setSuperType(String type)
setSuperType in interface Extendable<JavaClass>public SourceType getSourceType()
getSourceType in interface JavaSource<JavaClass>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.