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
-
copyInstance
-
addToComments
-
setToComments
-
addToComments
-
addAllToComments
-
removeFromComments
-
removeAllFromComments
-
getComments
-
getComment
-
getFirstComment
-
getLastComment
-
getMatchingComment
-
hasMatchingComment
-
withComments
-
withComments
-
hasComments
public boolean hasComments() -
addToAnnotations
-
setToAnnotations
-
addToAnnotations
-
addAllToAnnotations
-
removeFromAnnotations
-
removeAllFromAnnotations
-
removeMatchingFromAnnotations
-
buildAnnotations
-
buildAnnotation
-
buildFirstAnnotation
-
buildLastAnnotation
-
buildMatchingAnnotation
-
hasMatchingAnnotation
-
withAnnotations
-
withAnnotations
-
hasAnnotations
public boolean hasAnnotations() -
addNewAnnotation
-
addNewAnnotationLike
-
setNewAnnotationLike
-
editAnnotation
-
editFirstAnnotation
-
editLastAnnotation
-
editMatchingAnnotation
public MethodFluent<A>.AnnotationsNested<A> editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate) -
addToParameters
-
setToParameters
-
addToParameters
-
addAllToParameters
-
removeFromParameters
-
removeAllFromParameters
-
removeMatchingFromParameters
-
buildParameters
-
buildParameter
-
buildFirstParameter
-
buildLastParameter
-
buildMatchingParameter
-
hasMatchingParameter
-
withParameters
-
withParameters
-
hasParameters
public boolean hasParameters() -
addNewParameter
-
addNewParameterLike
-
setNewParameterLike
-
editParameter
-
editFirstParameter
-
editLastParameter
-
editMatchingParameter
public MethodFluent<A>.ParametersNested<A> editMatchingParameter(Predicate<TypeParamDefBuilder> predicate) -
getName
-
withName
-
hasName
public boolean hasName() -
buildReturnType
-
withReturnType
-
hasReturnType
public boolean hasReturnType() -
withNewClassRefReturnType
-
withNewClassRefReturnTypeLike
-
withNewPrimitiveRefReturnType
-
withNewPrimitiveRefReturnTypeLike
public MethodFluent<A>.PrimitiveRefReturnTypeNested<A> withNewPrimitiveRefReturnTypeLike(PrimitiveRef item) -
withNewVoidRefReturnType
-
withNewVoidRefReturnTypeLike
-
withNewTypeParamRefReturnType
-
withNewTypeParamRefReturnTypeLike
public MethodFluent<A>.TypeParamRefReturnTypeNested<A> withNewTypeParamRefReturnTypeLike(TypeParamRef item) -
withNewWildcardRefReturnType
-
withNewWildcardRefReturnTypeLike
public MethodFluent<A>.WildcardRefReturnTypeNested<A> withNewWildcardRefReturnTypeLike(WildcardRef item) -
addToArguments
-
setToArguments
-
addToArguments
-
addAllToArguments
-
removeFromArguments
-
removeAllFromArguments
-
removeMatchingFromArguments
-
buildArguments
-
buildArgument
-
buildFirstArgument
-
buildLastArgument
-
buildMatchingArgument
-
hasMatchingArgument
-
withArguments
-
withArguments
-
hasArguments
public boolean hasArguments() -
addNewArgument
-
addNewArgumentLike
-
setNewArgumentLike
-
editArgument
-
editFirstArgument
-
editLastArgument
-
editMatchingArgument
public MethodFluent<A>.ArgumentsNested<A> editMatchingArgument(Predicate<PropertyBuilder> predicate) -
isVarArgPreferred
public boolean isVarArgPreferred() -
withVarArgPreferred
-
hasVarArgPreferred
public boolean hasVarArgPreferred() -
addToExceptions
-
setToExceptions
-
addToExceptions
-
addAllToExceptions
-
removeFromExceptions
-
removeAllFromExceptions
-
removeMatchingFromExceptions
-
buildExceptions
-
buildException
-
buildFirstException
-
buildLastException
-
buildMatchingException
-
hasMatchingException
-
withExceptions
-
withExceptions
-
hasExceptions
public boolean hasExceptions() -
addNewException
-
addNewExceptionLike
-
setNewExceptionLike
-
editException
-
editFirstException
-
editLastException
-
editMatchingException
public MethodFluent<A>.ExceptionsNested<A> editMatchingException(Predicate<ClassRefBuilder> predicate) -
isDefaultMethod
public boolean isDefaultMethod() -
withDefaultMethod
-
hasDefaultMethod
public boolean hasDefaultMethod() -
buildBlock
-
withBlock
-
hasBlock
public boolean hasBlock() -
withNewBlock
-
withNewBlockLike
-
editBlock
-
editOrNewBlock
-
editOrNewBlockLike
-
equals
- Overrides:
equalsin classModifierSupportFluent<A extends MethodFluent<A>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classModifierSupportFluent<A extends MethodFluent<A>>
-
toString
- Overrides:
toStringin classModifierSupportFluent<A extends MethodFluent<A>>
-
builder
-
withVarArgPreferred
-
withDefaultMethod
-