Module org.eclipse.xtend.lib.macro
Interface MutableClassDeclaration
- All Superinterfaces:
AnnotationTarget,ClassDeclaration,Declaration,Element,MemberDeclaration,MutableAnnotationTarget,MutableDeclaration,MutableElement,MutableMemberDeclaration,MutableNamedElement,MutableTypeDeclaration,MutableTypeParameterDeclarator,NamedElement,Type,TypeDeclaration,TypeParameterDeclarator
@Beta
public interface MutableClassDeclaration
extends MutableTypeParameterDeclarator, MutableTypeDeclaration, ClassDeclaration
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetAbstract(boolean isAbstract) Sets theabstractpropertyvoidsetExtendedClass(TypeReference superclass) voidsetFinal(boolean isFinal) voidsetImplementedInterfaces(Iterable<? extends TypeReference> superinterfaces) voidsetStatic(boolean isStatic) voidsetStrictFloatingPoint(boolean isStrictFloatingPoint) Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.ClassDeclaration
getExtendedClass, getImplementedInterfaces, isAbstract, isFinal, isStatic, isStrictFloatingPointMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecatedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotationMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsReadMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibilityMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeDeclaration
addConstructor, addField, addMethod, findDeclaredConstructor, findDeclaredField, findDeclaredMethod, findDeclaredType, getDeclaredAnnotationTypes, getDeclaredClasses, getDeclaredConstructors, getDeclaredEnumerationTypes, getDeclaredFields, getDeclaredInterfaces, getDeclaredMembers, getDeclaredMethods, getDeclaredTypes, remove, setSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeParameterDeclarator
addTypeParameter, getTypeParametersMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.Type
getQualifiedName, isAssignableFrom
-
Method Details
-
setFinal
void setFinal(boolean isFinal) - Parameters:
isFinal-
-
setAbstract
void setAbstract(boolean isAbstract) Sets theabstractproperty- Parameters:
isAbstract-
-
setStatic
void setStatic(boolean isStatic) - Parameters:
isStatic-
-
setStrictFloatingPoint
void setStrictFloatingPoint(boolean isStrictFloatingPoint) - Parameters:
isStrictFloatingPoint-
-
setExtendedClass
- Parameters:
superclass- the type reference to the super type.nullresets the extended class to java.lang.Object (the default).
-
setImplementedInterfaces
- Parameters:
superinterfaces- the interfaces this class implements- Throws:
IllegalArgumentException- ifsuperinterfacesisnullor containsnull
-