Package io.sundr.model
Class MethodFluent<A extends MethodFluent<A>>
java.lang.Object
io.sundr.builder.BaseFluent<A>
io.sundr.model.AttributeSupportFluent<A>
io.sundr.model.ModifierSupportFluent<A>
io.sundr.model.MethodFluent<A>
- Direct Known Subclasses:
MethodBuilder,TypeDefFluent.ConstructorsNested,TypeDefFluent.MethodsNested
Generated
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassNested classes/interfaces inherited from class io.sundr.model.ModifierSupportFluent
ModifierSupportFluent.ModifiersNested<N> -
Field Summary
Fields inherited from class io.sundr.builder.BaseFluent
_visitables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllToArguments(Collection<Property> items) addAllToComments(Collection<String> items) addAllToExceptions(Collection<ClassRef> items) addAllToParameters(Collection<TypeParamDef> items) addNewArgumentLike(Property item) addNewExceptionLike(ClassRef item) addToAnnotations(int index, AnnotationRef item) addToAnnotations(AnnotationRef... items) addToArguments(int index, Property item) addToArguments(Property... items) addToComments(int index, String item) addToComments(String... items) addToExceptions(int index, ClassRef item) addToExceptions(ClassRef... items) addToParameters(int index, TypeParamDef item) addToParameters(TypeParamDef... items) buildAnnotation(int index) buildArgument(int index) protected static <T> VisitableBuilder<T,?> buildException(int index) buildMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate) buildMatchingArgument(Predicate<PropertyBuilder> predicate) buildMatchingException(Predicate<ClassRefBuilder> predicate) buildMatchingParameter(Predicate<TypeParamDefBuilder> predicate) buildParameter(int index) protected voidcopyInstance(Method instance) editAnnotation(int index) editArgument(int index) editException(int index) editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate) editMatchingArgument(Predicate<PropertyBuilder> predicate) editMatchingException(Predicate<ClassRefBuilder> predicate) editMatchingParameter(Predicate<TypeParamDefBuilder> predicate) editOrNewBlockLike(Block item) editParameter(int index) booleangetComment(int index) getMatchingComment(Predicate<String> predicate) getName()booleanbooleanbooleanhasBlock()booleanbooleanbooleaninthashCode()booleanhasMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate) booleanhasMatchingArgument(Predicate<PropertyBuilder> predicate) booleanhasMatchingComment(Predicate<String> predicate) booleanhasMatchingException(Predicate<ClassRefBuilder> predicate) booleanhasMatchingParameter(Predicate<TypeParamDefBuilder> predicate) booleanhasName()booleanbooleanbooleanbooleanbooleanremoveAllFromArguments(Collection<Property> items) removeAllFromComments(Collection<String> items) removeFromAnnotations(AnnotationRef... items) removeFromArguments(Property... items) removeFromComments(String... items) removeFromExceptions(ClassRef... items) removeFromParameters(TypeParamDef... items) removeMatchingFromArguments(Predicate<PropertyBuilder> predicate) removeMatchingFromExceptions(Predicate<ClassRefBuilder> predicate) removeMatchingFromParameters(Predicate<TypeParamDefBuilder> predicate) setNewAnnotationLike(int index, AnnotationRef item) setNewArgumentLike(int index, Property item) setNewExceptionLike(int index, ClassRef item) setNewParameterLike(int index, TypeParamDef item) setToAnnotations(int index, AnnotationRef item) setToArguments(int index, Property item) setToComments(int index, String item) setToExceptions(int index, ClassRef item) setToParameters(int index, TypeParamDef item) toString()withAnnotations(AnnotationRef... annotations) withAnnotations(List<AnnotationRef> annotations) withArguments(Property... arguments) withArguments(List<Property> arguments) withComments(String... comments) withComments(List<String> comments) withDefaultMethod(boolean defaultMethod) withExceptions(ClassRef... exceptions) withExceptions(List<ClassRef> exceptions) withNewBlockLike(Block item) withParameters(TypeParamDef... parameters) withParameters(List<TypeParamDef> parameters) withReturnType(TypeRef returnType) withVarArgPreferred(boolean varArgPreferred) Methods inherited from class io.sundr.model.ModifierSupportFluent
buildModifiers, copyInstance, editModifiers, editOrNewModifiers, editOrNewModifiersLike, hasModifiers, withModifiers, withNewModifiers, withNewModifiersLikeMethods inherited from class io.sundr.model.AttributeSupportFluent
addToAttributes, addToAttributes, copyInstance, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributesMethods inherited from class io.sundr.builder.BaseFluent
aggregate, aggregate, build, build, builderOf, getVisitableMap
-
Constructor Details
-
MethodFluent
public MethodFluent() -
MethodFluent
-
-
Method Details
-
addAllToAnnotations
-
addAllToArguments
-
addAllToComments
-
addAllToExceptions
-
addAllToParameters
-
addNewAnnotation
-
addNewAnnotationLike
-
addNewArgument
-
addNewArgumentLike
-
addNewException
-
addNewExceptionLike
-
addNewParameter
-
addNewParameterLike
-
addToAnnotations
-
addToAnnotations
-
addToArguments
-
addToArguments
-
addToComments
-
addToComments
-
addToExceptions
-
addToExceptions
-
addToParameters
-
addToParameters
-
buildAnnotation
-
buildAnnotations
-
buildArgument
-
buildArguments
-
buildBlock
-
buildException
-
buildExceptions
-
buildFirstAnnotation
-
buildFirstArgument
-
buildFirstException
-
buildFirstParameter
-
buildLastAnnotation
-
buildLastArgument
-
buildLastException
-
buildLastParameter
-
buildMatchingAnnotation
-
buildMatchingArgument
-
buildMatchingException
-
buildMatchingParameter
-
buildParameter
-
buildParameters
-
buildReturnType
-
builder
-
copyInstance
-
editAnnotation
-
editArgument
-
editBlock
-
editException
-
editFirstAnnotation
-
editFirstArgument
-
editFirstException
-
editFirstParameter
-
editLastAnnotation
-
editLastArgument
-
editLastException
-
editLastParameter
-
editMatchingAnnotation
public MethodFluent<A>.AnnotationsNested<A> editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate) -
editMatchingArgument
public MethodFluent<A>.ArgumentsNested<A> editMatchingArgument(Predicate<PropertyBuilder> predicate) -
editMatchingException
public MethodFluent<A>.ExceptionsNested<A> editMatchingException(Predicate<ClassRefBuilder> predicate) -
editMatchingParameter
public MethodFluent<A>.ParametersNested<A> editMatchingParameter(Predicate<TypeParamDefBuilder> predicate) -
editOrNewBlock
-
editOrNewBlockLike
-
editParameter
-
equals
- Overrides:
equalsin classModifierSupportFluent<A extends MethodFluent<A>>
-
getComment
-
getComments
-
getFirstComment
-
getLastComment
-
getMatchingComment
-
getName
-
hasAnnotations
public boolean hasAnnotations() -
hasArguments
public boolean hasArguments() -
hasBlock
public boolean hasBlock() -
hasComments
public boolean hasComments() -
hasDefaultMethod
public boolean hasDefaultMethod() -
hasExceptions
public boolean hasExceptions() -
hasMatchingAnnotation
-
hasMatchingArgument
-
hasMatchingComment
-
hasMatchingException
-
hasMatchingParameter
-
hasName
public boolean hasName() -
hasParameters
public boolean hasParameters() -
hasReturnType
public boolean hasReturnType() -
hasVarArgPreferred
public boolean hasVarArgPreferred() -
hashCode
public int hashCode()- Overrides:
hashCodein classModifierSupportFluent<A extends MethodFluent<A>>
-
isDefaultMethod
public boolean isDefaultMethod() -
isVarArgPreferred
public boolean isVarArgPreferred() -
removeAllFromAnnotations
-
removeAllFromArguments
-
removeAllFromComments
-
removeAllFromExceptions
-
removeAllFromParameters
-
removeFromAnnotations
-
removeFromArguments
-
removeFromComments
-
removeFromExceptions
-
removeFromParameters
-
removeMatchingFromAnnotations
-
removeMatchingFromArguments
-
removeMatchingFromExceptions
-
removeMatchingFromParameters
-
setNewAnnotationLike
-
setNewArgumentLike
-
setNewExceptionLike
-
setNewParameterLike
-
setToAnnotations
-
setToArguments
-
setToComments
-
setToExceptions
-
setToParameters
-
toString
- Overrides:
toStringin classModifierSupportFluent<A extends MethodFluent<A>>
-
withAnnotations
-
withAnnotations
-
withArguments
-
withArguments
-
withBlock
-
withComments
-
withComments
-
withDefaultMethod
-
withDefaultMethod
-
withExceptions
-
withExceptions
-
withName
-
withNewBlock
-
withNewBlockLike
-
withNewClassRefReturnType
-
withNewClassRefReturnTypeLike
-
withNewPrimitiveRefReturnType
-
withNewPrimitiveRefReturnTypeLike
public MethodFluent<A>.PrimitiveRefReturnTypeNested<A> withNewPrimitiveRefReturnTypeLike(PrimitiveRef item) -
withNewTypeParamRefReturnType
-
withNewTypeParamRefReturnTypeLike
public MethodFluent<A>.TypeParamRefReturnTypeNested<A> withNewTypeParamRefReturnTypeLike(TypeParamRef item) -
withNewVoidRefReturnType
-
withNewVoidRefReturnTypeLike
-
withNewWildcardRefReturnType
-
withNewWildcardRefReturnTypeLike
public MethodFluent<A>.WildcardRefReturnTypeNested<A> withNewWildcardRefReturnTypeLike(WildcardRef item) -
withParameters
-
withParameters
-
withReturnType
-
withVarArgPreferred
-
withVarArgPreferred
-