Uses of Annotation Interface
spoon.reflect.annotations.PropertySetter
Packages that use PropertySetter
Package
Description
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines the references to program elements for the meta-model.
-
Uses of PropertySetter in spoon.reflect.code
Methods in spoon.reflect.code with annotations of type PropertySetterModifier and TypeMethodDescription<T extends CtActualTypeContainer>
TCtConstructorCall.addActualTypeArgument(CtTypeReference<?> actualTypeArgument) Delegate to the executable reference of the constructor call.<T extends CtActualTypeContainer>
TCtInvocation.addActualTypeArgument(CtTypeReference<?> actualTypeArgument) Delegate to the executable reference of the invocation.<T extends CtActualTypeContainer>
TCtNewClass.addActualTypeArgument(CtTypeReference<?> actualTypeArgument) Delegate to the executable reference of the new class.<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.addArgument(CtExpression<?> argument) Adds an argument expression to the invocation.<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.addArgumentAt(int position, CtExpression<?> argument) Adds an argument expression to the invocation at the specified position.<T extends CtAbstractSwitch<S>>
TAdds a case;<T extends CtAbstractSwitch<S>>
TAdds a case at the specified position.CtCase.addCaseExpression(CtExpression<S> caseExpression) Adds case expression.<T extends CtTry>
TCtTry.addCatcher(CtCatch catcher) Adds a catch block.CtTry.addCatcherAt(int position, CtCatch catcher) Adds a catch block at the specified position in thetrystatement.<C extends CtNewArray<T>>
CCtNewArray.addDimensionExpression(CtExpression<Integer> dimension) Adds a dimension expression.<C extends CtNewArray<T>>
CCtNewArray.addElement(CtExpression<?> expression) Adds an element.<T extends CtFor>
TCtFor.addForInit(CtStatement statement) Adds an init statement.<T extends CtFor>
TCtFor.addForUpdate(CtStatement statement) Adds an update statement.CtRecordPattern.addPattern(CtPattern pattern) Adds an inner patterns to the list of inner patterns of this record.<T extends CtTryWithResource>
TCtTryWithResource.addResource(CtResource<?> resource) Adds a resource.<T extends CtStatementList>
TCtStatementList.addStatement(int index, CtStatement statement) Inserts the given statement at a specific position in the list of statements Shifts the statement currently at that position (if any) and any subsequent statements to the right (adds one to their indices).<T extends CtStatementList>
TCtStatementList.addStatement(CtStatement statement) Adds a statement at the end of the list.<E extends CtJavaDoc>
ECtJavaDoc.addTag(int index, CtJavaDocTag tag) Add a new tag at the index position<E extends CtJavaDoc>
ECtJavaDoc.addTag(CtJavaDocTag tag) Add a new tag at the end of the list<C extends CtExpression<T>>
CCtExpression.addTypeCast(CtTypeReference<?> type) Adds a type cast.<T extends CtStatementList>
TCtStatementList.insertBegin(CtStatement statement) Inserts the given statement at the beginning of the block.<T extends CtStatementList>
TCtStatementList.insertBegin(CtStatementList statements) Inserts the given statement list at the beginning of the block.<T extends CtStatementList>
TCtStatementList.insertEnd(CtStatement statement) Inserts the given statement at the end of the block.<T extends CtStatementList>
TCtStatementList.insertEnd(CtStatementList statements) Inserts the given statements at the end of the block.voidCtAbstractInvocation.removeArgument(CtExpression<?> argument) Removes an argument expression from the invocation.booleanCtAbstractSwitch.removeCase(CtCase<? super S> c) Removes a case;booleanCtTry.removeCatcher(CtCatch catcher) Removes a catch block.booleanCtNewArray.removeDimensionExpression(CtExpression<Integer> dimension) Removes a dimension expression.booleanCtNewArray.removeElement(CtExpression<?> expression) Removes an element.booleanCtFor.removeForInit(CtStatement statement) Removes an init statement.booleanCtFor.removeForUpdate(CtStatement statement) Removes an update statement.booleanCtTryWithResource.removeResource(CtResource<?> resource) Removes a resource.voidCtStatementList.removeStatement(CtStatement statement) Removes a statement.<E extends CtJavaDoc>
ECtJavaDoc.removeTag(int index) Remove a tag from the index<E extends CtJavaDoc>
ECtJavaDoc.removeTag(CtJavaDocTag tag) Remove a specific tag<C extends CtTypeAccess<A>>
CCtTypeAccess.setAccessedType(CtTypeReference<A> accessedType) Set the accessed type.<T extends CtActualTypeContainer>
TCtConstructorCall.setActualTypeArguments(List<? extends CtTypeReference<?>> actualTypeArguments) Delegate to the executable reference of the constructor call.<T extends CtActualTypeContainer>
TCtInvocation.setActualTypeArguments(List<? extends CtTypeReference<?>> actualTypeArguments) Delegate to the executable reference of the invocation.<T extends CtActualTypeContainer>
TCtNewClass.setActualTypeArguments(List<? extends CtTypeReference<?>> actualTypeArguments) Delegate to the executable reference of the new class.<N extends CtNewClass>
NCtNewClass.setAnonymousClass(CtClass<?> anonymousClass) Sets the created class.<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.setArguments(List<CtExpression<?>> arguments) Sets the invocation's arguments.CtAssert.setAssertExpression(CtExpression<Boolean> asserted) Sets the assert expression.<C extends CtAssignment<T,A>>
CCtAssignment.setAssigned(CtExpression<T> assigned) Sets the assigned expression (left hand side - LHS).<T extends CtRHSReceiver<A>>
TCtRHSReceiver.setAssignment(CtExpression<A> assignment) Sets the right-hand side expression (RHS) of the "=" operator.CtLiteral.setBase(LiteralBase base) Sets the base of the numeric literal.<T extends CtSynchronized>
TSets the synchronized block.<T extends CtBodyHolder>
TCtBodyHolder.setBody(CtStatement body) Sets the body of this element.CtCase.setCaseExpression(CtExpression<S> caseExpression) Sets the case expression.CtCase.setCaseExpressions(List<CtExpression<S>> caseExpressions) Sets the case expressions.CtCase.setCaseKind(CaseKind kind) Sets the kind of this case - colon (:) or arrow (->) (Arrow syntax is available as a preview feature since Java 12)<T extends CtAbstractSwitch<S>>
TSets the list of cases defined for this switch.<T extends CtTry>
TCtTry.setCatchers(List<CtCatch> catchers) Sets the catchers of thistry.<E extends CtComment>
ECtComment.setCommentType(CtComment.CommentType commentType) <C extends CtConditional<T>>
CCtConditional.setCondition(CtExpression<Boolean> condition) Sets the condition expression.<T extends CtIf>
TCtIf.setCondition(CtExpression<Boolean> expression) Sets the boolean expression that represents theif's condition.<E extends CtComment>
ECtComment.setContent(String content) <E extends CtJavaDocTag>
ECtJavaDocTag.setContent(String content) Define the content of the tag<C extends CtNewArray<T>>
CCtNewArray.setDimensionExpressions(List<CtExpression<Integer>> dimensions) Sets the expressions that define the array's dimensions.<C extends CtNewArray<T>>
CCtNewArray.setElements(List<CtExpression<?>> expression) Sets the initialization expressions.<C extends CtConditional<T>>
CCtConditional.setElseExpression(CtExpression<T> elseExpression) Sets the "false" expression.<T extends CtIf>
TCtIf.setElseStatement(CtStatement elseStatement) Sets the statement executed when the condition is false.<C extends CtAbstractInvocation<T>>
CCtAbstractInvocation.setExecutable(CtExecutableReference<T> executable) Sets the invoked executable.<C extends CtExecutableReferenceExpression<T,E>>
CCtExecutableReferenceExpression.setExecutable(CtExecutableReference<T> executable) Sets the executable will be referenced by the expression.CtAssert.setExpression(CtExpression<T> expression) Sets the expression of the assertion.<T extends CtFor>
TCtFor.setExpression(CtExpression<Boolean> expression) Sets the end-loop test expression.<T extends CtForEach>
TCtForEach.setExpression(CtExpression<?> expression) Sets the iterated expression (an iterable of an array).CtLambda.setExpression(CtExpression<T> expression) Sets the expression in the body of the lambda.<T extends CtSynchronized>
TCtSynchronized.setExpression(CtExpression<?> expression) Sets the expression that defines the monitored.<T extends CtYieldStatement>
TCtYieldStatement.setExpression(CtExpression<?> expression) Gets the expression of the yield statement.<T extends CtTry>
TCtTry.setFinalizer(CtBlock<?> finalizer) Sets the finalizer block of thistry(finallypart).<T extends CtFor>
TCtFor.setForInit(List<CtStatement> forInit) Sets the init statements.<T extends CtFor>
TCtFor.setForUpdate(List<CtStatement> forUpdate) Sets the update statements.CtCase.setGuard(@Nullable CtExpression<?> guard) Sets the guarding expression for this case.CtCase.setIncludesDefault(boolean includesDefault) Sets whether this case includes a trailingdefault.<C extends CtArrayAccess<T,E>>
CCtArrayAccess.setIndexExpression(CtExpression<Integer> expression) Sets the expression that defines the index.<U extends CtLocalVariable<T>>
UCtLocalVariable.setInferred(boolean inferred) Set true if the variable must be inferred.<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setKind(BinaryOperatorKind kind) Sets the kind of this binary operator.<C extends CtOperatorAssignment<T,A>>
CCtOperatorAssignment.setKind(BinaryOperatorKind kind) Sets the operator kind.<C extends CtUnaryOperator>
CCtUnaryOperator.setKind(UnaryOperatorKind kind) Sets the kind of this operator.<T extends CtStatement>
TSets the label of this statement.<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setLeftHandOperand(CtExpression<?> expression) Sets the left-hand operand.<T extends CtDo>
TCtDo.setLoopingExpression(CtExpression<Boolean> expression) Sets the looping test as a boolean expression.<T extends CtWhile>
TCtWhile.setLoopingExpression(CtExpression<Boolean> expression) Sets the looping boolean test expression.<C extends CtUnaryOperator>
CCtUnaryOperator.setOperand(CtExpression<?> expression) Sets the expression to which the operator is applied.<E extends CtJavaDocTag>
EDefine a parameter<T extends CtCatch>
TCtCatch.setParameter(CtCatchVariable<? extends Throwable> parameter) Sets the catch's parameter (a throwable).CtCasePattern.setPattern(CtPattern pattern) Sets the pattern for this case pattern.CtRecordPattern.setPatternList(List<CtPattern> patternList) Sets the inner patterns of this record pattern.<E extends CtJavaDocTag>
ECtJavaDocTag.setRealName(String realName) Define the real name of tag typeCtRecordPattern.setRecordType(CtTypeReference<?> recordType) Sets the type of the deconstructed record.<T extends CtTryWithResource>
TCtTryWithResource.setResources(List<? extends CtResource<?>> resources) Sets the auto-closeable resources of thistry.CtReturn.setReturnedExpression(CtExpression<R> returnedExpression) Sets the returned expression.<C extends CtBinaryOperator<T>>
CCtBinaryOperator.setRightHandOperand(CtExpression<?> expression) Sets the right-hand operand.<T extends CtAbstractSwitch<S>>
TCtAbstractSwitch.setSelector(CtExpression<S> selector) Sets the selector.<T extends CtStatementList>
TCtStatementList.setStatements(List<CtStatement> statements) Sets the statement list.<E extends CtJavaDoc>
ECtJavaDoc.setTags(List<CtJavaDocTag> tags) Define the list of tags<C extends CtTargetedExpression<T,E>>
CSets the target expression.<T extends CtLabelledFlowBreak>
TCtLabelledFlowBreak.setTargetLabel(String targetLabel) Sets the label from which the control flow breaks (null if no label defined).<C extends CtConditional<T>>
CCtConditional.setThenExpression(CtExpression<T> thenExpression) Sets the "true" expression.<T extends CtIf>
TCtIf.setThenStatement(CtStatement thenStatement) Sets the statement executed when the condition is true.<T extends CtThrow>
TCtThrow.setThrownExpression(CtExpression<? extends Throwable> thrownExpression) Sets the thrown expression (must be a throwable).<E extends CtJavaDocTag>
EDefine the type of the tag<E extends CtJavaDocTag>
ECtJavaDocTag.setType(CtJavaDocTag.TagType type) Define the type of the tag<C extends CtExpression<T>>
CCtExpression.setTypeCasts(List<CtTypeReference<?>> types) Sets the type casts.Sets the actual value of the literal.<T extends CtForEach>
TCtForEach.setVariable(CtLocalVariable<?> variable) Sets the variable that references the currently iterated element.CtTypePattern.setVariable(CtLocalVariable<?> variable) Sets the local variable for this type pattern.<C extends CtVariableAccess<T>>
CCtVariableAccess.setVariable(CtVariableReference<T> variable) Sets the reference to the accessed variable. -
Uses of PropertySetter in spoon.reflect.declaration
Methods in spoon.reflect.declaration with annotations of type PropertySetterModifier and TypeMethodDescription<E extends CtElement>
ECtElement.addAnnotation(CtAnnotation<? extends Annotation> annotation) Add an annotation for this elementCtClass.addAnonymousExecutable(CtAnonymousExecutable e) Add an anonymous block to this class.<E extends CtElement>
ECtElement.addComment(CtComment comment) Add a comment to the current elementelement.addComment(element.getFactory().Code().createComment("comment", CtComment.CommentType.INLINE)CtClass.addConstructor(CtConstructor<T> constructor) Adds a constructor to this class.CtCompilationUnit.addDeclaredTypeReference(CtTypeReference<?> type) Add a type reference to the list of declared typesCtEnum.addEnumValue(CtEnumValue<?> enumValue) Adds an enum value.<T extends CtModule>
TCtModule.addExportedPackage(CtPackageExport exportedPackage) add a field at a given position.add a field at the end of the field list.CtType.addFieldAtTop(CtField<F> field) Adds a field at the top of the type (before static block).<T extends CtFormalTypeDeclarer>
TCtFormalTypeDeclarer.addFormalCtTypeParameter(CtTypeParameter formalTypeParameter) Add a type parameter to this generic element.<T extends CtFormalTypeDeclarer>
TCtFormalTypeDeclarer.addFormalCtTypeParameterAt(int position, CtTypeParameter formalTypeParameter) Add a type parameter at a specific position.<T extends CtProvidedService>
TCtProvidedService.addImplementationType(CtTypeReference usedType) Adds a method to this type.<T extends CtModifiable>
TCtModifiable.addModifier(ModifierKind modifier) add a modifier<T extends CtModule>
TCtModule.addModuleDirective(CtModuleDirective moduleDirective) <T extends CtModule>
TCtModule.addModuleDirectiveAt(int position, CtModuleDirective moduleDirective) <T extends CtMultiTypedElement>
TCtMultiTypedElement.addMultiType(CtTypeReference<?> ref) Adds a type for the element.CtType.addNestedType(CtType<N> nestedType) Add a nested type.<T extends CtModule>
TCtModule.addOpenedPackage(CtPackageExport openedPackage) <T extends CtPackage>
TCtPackage.addPackage(CtPackage pack) add a subpackage<T extends CtExecutable<R>>
TCtExecutable.addParameter(CtParameter<?> parameter) Add a parameter for this executable<T extends CtExecutable<R>>
TCtExecutable.addParameterAt(int position, CtParameter<?> parameter) Add a parameter at a specific position in the executable.CtSealable.addPermittedType(CtTypeReference<?> type) Adds a permitted type to this type.<T extends CtModule>
TCtModule.addProvidedService(CtProvidedService providedService) CtRecord.addRecordComponent(CtRecordComponent component) <T extends CtModule>
TCtModule.addRequiredModule(CtModuleRequirement requiredModule) CtType.addSuperInterface(CtTypeReference<S> interfac) <T extends CtPackageExport>
TCtPackageExport.addTargetExport(CtModuleReference targetExport) <T extends CtExecutable<R>>
TCtExecutable.addThrownType(CtTypeReference<? extends Throwable> throwType) add a thrown type.<T extends CtPackage>
TAdds a type to this package.CtType.addTypeMember(CtTypeMember member) Adds a type member at the end of all type member of the type.CtType.addTypeMemberAt(int position, CtTypeMember member) Adds a type member at a given position.<T extends CtModule>
TCtModule.addUsedService(CtUsedService usedService) <T extends CtAnnotation<A>>
TAdds a new key-value pair for this annotation<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtFieldAccess<?> value) Adds a new key-field access pair for this annotation.<T extends CtAnnotation<A>>
TAdds a new key-literal pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtNewArray<? extends CtExpression> value) Adds a new key-array pair for this annotation.<T extends CtAnnotation<A>>
TCtAnnotation.addValue(String elementName, CtAnnotation<?> value) Adds a new key-annotation pair for this annotation.booleanCtElement.removeAnnotation(CtAnnotation<? extends Annotation> annotation) Remove an annotation for this elementbooleanCtClass.removeAnonymousExecutable(CtAnonymousExecutable e) Remove an anonymous block to this class.<E extends CtElement>
ECtElement.removeComment(CtComment comment) Remove a commentvoidCtClass.removeConstructor(CtConstructor<T> constructor) Removes a constructor from this class.booleanCtEnum.removeEnumValue(CtEnumValue<?> enumValue) Removes en enum value.<T extends CtModule>
TCtModule.removeExportedPackage(CtPackageExport exportedPackage) <F> booleanCtType.removeField(CtField<F> field) remove a FieldbooleanCtFormalTypeDeclarer.removeFormalCtTypeParameter(CtTypeParameter formalTypeParameter) Removes a type parameters from this generic element.<M> booleanCtType.removeMethod(CtMethod<M> method) Removes a method from this type.<T extends CtModifiable>
TCtModifiable.removeModifier(ModifierKind modifier) remove a modifier<T extends CtModule>
TCtModule.removeModuleDirective(CtModuleDirective moduleDirective) booleanCtMultiTypedElement.removeMultiType(CtTypeReference<?> ref) Removes a type for the element.<N> booleanCtType.removeNestedType(CtType<N> nestedType) Remove a nested type.<T extends CtModule>
TCtModule.removeOpenedPackage(CtPackageExport openedPackage) booleanCtPackage.removePackage(CtPackage pack) remove a subpackageCtSealable.removePermittedType(CtTypeReference<?> type) Adds a permitted type to this type.<T extends CtModule>
TCtModule.removeProvidedService(CtProvidedService providedService) CtRecord.removeRecordComponent(CtRecordComponent component) <T extends CtModule>
TCtModule.removeRequiredModule(CtModuleRequirement requiredModule) <S> booleanCtType.removeSuperInterface(CtTypeReference<S> interfac) booleanCtExecutable.removeThrownType(CtTypeReference<? extends Throwable> throwType) remove a thrown type.voidCtPackage.removeType(CtType<?> type) Removes a type from this package.booleanCtType.removeTypeMember(CtTypeMember member) Removes the type member.<T extends CtModule>
TCtModule.removeUsedService(CtUsedService usedService) <E extends CtElement>
ECtElement.setAnnotations(List<CtAnnotation<? extends Annotation>> annotation) Sets the annotations for this element.<T extends CtAnnotation<A>>
TCtAnnotation.setAnnotationType(CtTypeReference<? extends Annotation> type) Sets the annotation's type.CtClass.setAnonymousExecutables(List<CtAnonymousExecutable> e) Sets the anonymous blocks of this class.<E extends CtElement>
ECtElement.setComments(List<CtComment> comments) Set the comment listvoidCtConstructor.setCompactConstructor(boolean compactConstructor) Marks the constructor as a compact constructor.CtClass.setConstructors(Set<CtConstructor<T>> constructors) Sets the constructors for this class.CtCompilationUnit.setDeclaredModuleReference(CtModuleReference module) Sets the declared module reference if the compilationUnit is "module-info.java"CtCompilationUnit.setDeclaredTypeReferences(List<CtTypeReference<?>> types) Sets the references to types declared in this compilation unit.<C extends CtAnnotationMethod<T>>
CCtAnnotationMethod.setDefaultExpression(CtExpression<T> assignedExpression) Sets the default expression assigned to the annotation method.<C extends CtVariable<T>>
CCtVariable.setDefaultExpression(CtExpression<T> assignedExpression) Sets the initialization expression assigned to the variable, when declared.CtMethod.setDefaultMethod(boolean defaultMethod) Sets the default value state of a method.<T extends CtAnnotation<A>>
TCtAnnotation.setElementValues(Map<String, Object> values) Set's this annotation's element names and their values.CtEnum.setEnumValues(List<CtEnumValue<?>> enumValues) Sets all enum values of the enum.<T extends CtModule>
TCtModule.setExportedPackages(List<CtPackageExport> exportedPackages) Sets all fields in the type.<T extends CtFormalTypeDeclarer>
TCtFormalTypeDeclarer.setFormalCtTypeParameters(List<CtTypeParameter> formalTypeParameters) Sets the type parameters of this generic element.<T extends CtProvidedService>
TCtProvidedService.setImplementationTypes(List<CtTypeReference> usedTypes) <E extends CtElement>
ECtElement.setImplicit(boolean b) Sets this element to be implicit.CtCompilationUnit.setImports(Collection<CtImport> imports) Set the imports of this CU WARNING: This method is tagged as experimental, as its signature and/or usage might change in future release.<U extends CtParameter<T>>
UCtParameter.setInferred(boolean inferred) Set to true if this parameter is a lambda parameter with type defined using the `var` keyword.<T extends CtModule>
TCtModule.setIsOpenModule(boolean openModule) CtType.setMethods(Set<CtMethod<?>> methods) Sets the methods of this type.<T extends CtModifiable>
TCtModifiable.setModifiers(Set<ModifierKind> modifiers) Sets the modifiers.<T extends CtModule>
TCtModule.setModuleDirectives(List<CtModuleDirective> moduleDirectives) <T extends CtModuleRequirement>
TCtModuleRequirement.setModuleReference(CtModuleReference moduleReference) <T extends CtMultiTypedElement>
TCtMultiTypedElement.setMultiTypes(List<CtTypeReference<?>> types) Adds a type for the element.CtType.setNestedTypes(Set<CtType<?>> nestedTypes) Sets all nested types.<T extends CtPackageExport>
TCtPackageExport.setOpenedPackage(boolean openedPackage) <T extends CtModule>
TCtModule.setOpenedPackages(List<CtPackageExport> openedPackages) CtCompilationUnit.setPackageDeclaration(CtPackageDeclaration packageDeclaration) Sets the package declaration<T extends CtPackageExport>
TCtPackageExport.setPackageReference(CtPackageReference packageReference) <T extends CtPackage>
TCtPackage.setPackages(Set<CtPackage> pack) Sets the children defined in this package<T extends CtExecutable<R>>
TCtExecutable.setParameters(List<CtParameter<?>> parameters) Sets the parameters.CtSealable.setPermittedTypes(Collection<CtTypeReference<?>> permittedTypes) Sets the permitted types for this type.<E extends CtElement>
ECtElement.setPosition(SourcePosition position) Sets the position in the Java source file.<T extends CtModule>
TCtModule.setProvidedServices(List<CtProvidedService> providedServices) CtExecutable<?>CtExecutable.setReceiverParameter(CtReceiverParameter receiverParameter) CtRecord.setRecordComponents(Set<CtRecordComponent> components) <T extends CtImport>
TCtImport.setReference(CtReference reference) Sets the reference of the import.CtPackageDeclaration.setReference(CtPackageReference reference) Sets the reference to the package.<T extends CtModule>
TCtModule.setRequiredModules(List<CtModuleRequirement> requiredModules) <T extends CtModuleRequirement>
TCtModuleRequirement.setRequiresModifiers(Set<CtModuleRequirement.RequiresModifier> requiresModifiers) <T extends CtModule>
TCtModule.setRootPackage(CtPackage rootPackage) <T extends CtProvidedService>
TCtProvidedService.setServiceType(CtTypeReference providingType) <T extends CtUsedService>
TCtUsedService.setServiceType(CtTypeReference providingType) <E extends CtShadowable>
ECtShadowable.setShadow(boolean isShadow) Marks an element as shadow.<T extends CtNamedElement>
TCtNamedElement.setSimpleName(String simpleName) Sets the simple (unqualified) name of this element.CtType.setSuperclass(CtTypeReference<?> superClass) Sets the superclass type.CtType.setSuperInterfaces(Set<CtTypeReference<?>> interfaces) Sets the super interfaces of this type.<T extends CtPackageExport>
TCtPackageExport.setTargetExport(List<CtModuleReference> targetExport) <T extends CtExecutable<R>>
TCtExecutable.setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes) Sets the thrown types.<C extends CtTypedElement>
CCtTypedElement.setType(CtTypeReference type) Sets this element's type.CtType.setTypeMembers(List<CtTypeMember> members) Removes all types members with these new members.<T extends CtPackage>
TSets the types defined in the package.<T extends CtModule>
TCtModule.setUsedServices(List<CtUsedService> usedServices) <C extends CtCodeSnippet>
CSets the textual value of the code.<T extends CtAnnotation<A>>
TCtAnnotation.setValues(Map<String, CtExpression> values) Set's this annotation's element names and their values.<C extends CtParameter<T>>
CCtParameter.setVarArgs(boolean varArgs) Sets this parameter to have varargs.<T extends CtModifiable>
TCtModifiable.setVisibility(ModifierKind visibility) Sets the visibility of this modifiable element (replaces old visibility). -
Uses of PropertySetter in spoon.reflect.reference
Methods in spoon.reflect.reference with annotations of type PropertySetterModifier and TypeMethodDescription<C extends CtIntersectionTypeReference>
CCtIntersectionTypeReference.addBound(CtTypeReference<?> bound) Adds a bound.booleanCtIntersectionTypeReference.removeBound(CtTypeReference<?> bound) Removes a bound.<T extends CtActualTypeContainer>
TCtActualTypeContainer.setActualTypeArguments(List<? extends CtTypeReference<?>> actualTypeArguments) Sets the type arguments.<T extends CtWildcardReference>
TCtWildcardReference.setBoundingType(CtTypeReference<?> superType) Sets theextendsclause of the type parameter.<C extends CtIntersectionTypeReference>
CCtIntersectionTypeReference.setBounds(List<CtTypeReference<?>> bounds) Sets the bounds of the intersection type.<C extends CtArrayTypeReference<T>>
CCtArrayTypeReference.setComponentType(CtTypeReference<?> componentType) Sets the type of the elements contained in this array.<C extends CtExecutableReference<T>>
CCtExecutableReference.setDeclaringType(CtTypeReference<?> declaringType) Sets the declaring type.<C extends CtFieldReference<T>>
CCtFieldReference.setDeclaringType(CtTypeReference<?> declaringType) Sets the type in which the field is declared.<C extends CtTypeReference<T>>
CCtTypeReference.setDeclaringType(CtTypeReference<?> type) Sets the reference to the declaring type.<C extends CtFieldReference<T>>
CCtFieldReference.setFinal(boolean b) Forces a reference to a final element.<C extends CtTypeReference<T>>
CCtTypeReference.setPackage(CtPackageReference pack) Sets the reference to the declaring package.<C extends CtExecutableReference<T>>
CCtExecutableReference.setParameters(List<CtTypeReference<?>> parameters) Sets parameters of the executable.<T extends CtReference>
TCtReference.setSimpleName(String simpleName) Sets the name of referenced element.<C extends CtExecutableReference<T>>
CCtExecutableReference.setStatic(boolean b) Sets this executable reference to be static or not.<C extends CtFieldReference<T>>
CCtFieldReference.setStatic(boolean b) Forces a reference to a static element.<C extends CtExecutableReference<T>>
CCtExecutableReference.setType(CtTypeReference type) Sets the type of the variable.<C extends CtVariableReference<T>>
CCtVariableReference.setType(CtTypeReference type) Sets the type of the variable.CtTypeMemberWildcardImportReference.setTypeReference(CtTypeReference<?> typeReference) <T extends CtWildcardReference>
TCtWildcardReference.setUpper(boolean upper) Set totrueto writeextendsclause for bounds types.