@Beta public interface MutableTypeDeclaration extends MutableMemberDeclaration, TypeDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibilitymarkAsReadaddAnnotation, removeAnnotationgetQualifiedName, isAssignableFromgetDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsIterable<? extends MutableMemberDeclaration> getDeclaredMembers()
getDeclaredMembers in interface TypeDeclarationIterable<? extends MutableMethodDeclaration> getDeclaredMethods()
getDeclaredMethods in interface TypeDeclarationIterable<? extends MutableFieldDeclaration> getDeclaredFields()
getDeclaredFields in interface TypeDeclarationIterable<? extends MutableConstructorDeclaration> getDeclaredConstructors()
getDeclaredConstructors in interface TypeDeclarationIterable<? extends MutableClassDeclaration> getDeclaredClasses()
getDeclaredClasses in interface TypeDeclarationIterable<? extends MutableInterfaceDeclaration> getDeclaredInterfaces()
getDeclaredInterfaces in interface TypeDeclarationIterable<? extends MutableEnumerationTypeDeclaration> getDeclaredEnumerationTypes()
getDeclaredEnumerationTypes in interface TypeDeclarationIterable<? extends MutableAnnotationTypeDeclaration> getDeclaredAnnotationTypes()
getDeclaredAnnotationTypes in interface TypeDeclarationIterable<? extends MutableTypeDeclaration> getDeclaredTypes()
getDeclaredTypes in interface TypeDeclarationMutableFieldDeclaration findDeclaredField(String name)
findDeclaredField in interface TypeDeclarationname - of the featurenull of no such field exists.MutableTypeDeclaration findDeclaredType(String name)
findDeclaredType in interface TypeDeclarationname - of the nested typenull of no such type exists.MutableMethodDeclaration findDeclaredMethod(String name, TypeReference... parameterTypes)
findDeclaredMethod in interface TypeDeclarationname - of the methodparameterTypes - - the types of the methodnull if no such method exists.MutableConstructorDeclaration findDeclaredConstructor(TypeReference... parameterTypes)
findDeclaredConstructor in interface TypeDeclarationparameterTypes - - the parameter types of the constructornull if no such constructors exists.MutableFieldDeclaration addField(String name, Procedures.Procedure1<MutableFieldDeclaration> initializer)
name - the name of the field to be added, must be not nullinitializer - a callback for further initialization of the created field, must be not nullUnsupportedOperationException - if the underlying type declaration is not capable of containing methods.IllegalArgumentException - if the name is not a valid java identifier or the initializer is nullMutableMethodDeclaration addMethod(String name, Procedures.Procedure1<MutableMethodDeclaration> initializer)
name - the name of the methodinitializer - a call back for further initialization of the methodUnsupportedOperationException - if the underlying type declaration is not capable of containing methods.IllegalArgumentException - if the name is not a valid java identifier or the initializer is nullMutableConstructorDeclaration addConstructor(Procedures.Procedure1<MutableConstructorDeclaration> initializer)
initializer - a call back for further initialization of the constructorUnsupportedOperationException - if the underlying type declaration is not capable of containing constructors.IllegalArgumentException - if the initializer is nullvoid setSimpleName(String simpleName)
setSimpleName in interface MutableNamedElementsimpleName - the simple name of this element, must not be nullUnsupportedOperationException - alwaysvoid remove()
remove in interface MutableElementUnsupportedOperationException - alwaysCopyright © 2015. All Rights Reserved.