@Beta public interface MutableClassDeclaration extends MutableTypeParameterDeclarator, MutableTypeDeclaration, ClassDeclaration
Modifier and Type | Method and Description |
---|---|
void |
setAbstract(boolean isAbstract)
Sets the
abstract property |
void |
setExtendedClass(TypeReference superclass) |
void |
setFinal(boolean isFinal) |
void |
setImplementedInterfaces(java.lang.Iterable<? extends TypeReference> superinterfaces) |
void |
setStatic(boolean isStatic) |
void |
setStrictFloatingPoint(boolean isStrictFloatingPoint) |
addTypeParameter, getTypeParameters
addConstructor, addField, addMethod, findDeclaredConstructor, findDeclaredField, findDeclaredMethod, findDeclaredType, getDeclaredAnnotationTypes, getDeclaredClasses, getDeclaredConstructors, getDeclaredEnumerationTypes, getDeclaredFields, getDeclaredInterfaces, getDeclaredMembers, getDeclaredMethods, getDeclaredTypes, remove, setSimpleName
getDeclaringType, setDeprecated, setDocComment, setVisibility
markAsRead
addAnnotation, removeAnnotation
getExtendedClass, getImplementedInterfaces, isAbstract, isFinal, isStatic, isStrictFloatingPoint
getQualifiedName, isAssignableFrom
getDocComment, getModifiers, getVisibility, isDeprecated
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
void setFinal(boolean isFinal)
isFinal
- void setAbstract(boolean isAbstract)
abstract
propertyisAbstract
- void setStatic(boolean isStatic)
isStatic
- void setStrictFloatingPoint(boolean isStrictFloatingPoint)
isStrictFloatingPoint
- void setExtendedClass(TypeReference superclass)
superclass
- the type reference to the super type. null
resets the extended class to java.lang.Object (the default).void setImplementedInterfaces(java.lang.Iterable<? extends TypeReference> superinterfaces)
superinterfaces
- the interfaces this class implementsjava.lang.IllegalArgumentException
- if superinterfaces
is null
or contains null