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
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetAbstract(boolean isAbstract)Sets theabstractpropertyvoidsetExtendedClass(TypeReference superclass)voidsetFinal(boolean isFinal)voidsetImplementedInterfaces(java.lang.Iterable<? extends TypeReference> superinterfaces)voidsetStatic(boolean isStatic)voidsetStrictFloatingPoint(boolean isStrictFloatingPoint)-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.ClassDeclaration
getExtendedClass, getImplementedInterfaces, isAbstract, isFinal, isStatic, isStrictFloatingPoint
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotation
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsRead
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibility
-
Methods 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, setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeParameterDeclarator
addTypeParameter, getTypeParameters
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.Type
getQualifiedName, isAssignableFrom
-
-
-
-
Method Detail
-
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
void setExtendedClass(TypeReference superclass)
- Parameters:
superclass- the type reference to the super type.nullresets the extended class to java.lang.Object (the default).
-
setImplementedInterfaces
void setImplementedInterfaces(java.lang.Iterable<? extends TypeReference> superinterfaces)
- Parameters:
superinterfaces- the interfaces this class implements- Throws:
java.lang.IllegalArgumentException- ifsuperinterfacesisnullor containsnull
-
-