public class MethodFluentImpl<A extends MethodFluent<A>> extends ModifierSupportFluentImpl<A> implements MethodFluent<A>
MethodFluent.AnnotationsNested<N>, MethodFluent.ArgumentsNested<N>, MethodFluent.BlockNested<N>, MethodFluent.ClassRefReturnTypeNested<N>, MethodFluent.ExceptionsNested<N>, MethodFluent.ParametersNested<N>, MethodFluent.PrimitiveRefReturnTypeNested<N>, MethodFluent.TypeParamRefReturnTypeNested<N>, MethodFluent.VoidRefReturnTypeNested<N>, MethodFluent.WildcardRefReturnTypeNested<N>ModifierSupportFluent.ModifiersNested<N>_visitables| Constructor and Description |
|---|
MethodFluentImpl() |
MethodFluentImpl(Method instance) |
buildModifiers, editModifiers, editOrNewModifiers, editOrNewModifiersLike, getModifiers, hasModifiers, withModifiers, withNewModifiers, withNewModifiersLikeaddToAttributes, addToAttributes, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributesaccept, accept, accept, accept, aggregate, aggregate, build, build, builderOfclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildModifiers, editModifiers, editOrNewModifiers, editOrNewModifiersLike, getModifiers, hasModifiers, withModifiers, withNewModifiers, withNewModifiersLikeaddToAttributes, addToAttributes, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributespublic MethodFluentImpl()
public MethodFluentImpl(Method instance)
public A addToComments(Integer index, String item)
addToComments in interface MethodFluent<A extends MethodFluent<A>>public A setToComments(Integer index, String item)
setToComments in interface MethodFluent<A extends MethodFluent<A>>public A addToComments(String... items)
addToComments in interface MethodFluent<A extends MethodFluent<A>>public A addAllToComments(Collection<String> items)
addAllToComments in interface MethodFluent<A extends MethodFluent<A>>public A removeFromComments(String... items)
removeFromComments in interface MethodFluent<A extends MethodFluent<A>>public A removeAllFromComments(Collection<String> items)
removeAllFromComments in interface MethodFluent<A extends MethodFluent<A>>public List<String> getComments()
getComments in interface MethodFluent<A extends MethodFluent<A>>public String getComment(Integer index)
getComment in interface MethodFluent<A extends MethodFluent<A>>public String getFirstComment()
getFirstComment in interface MethodFluent<A extends MethodFluent<A>>public String getLastComment()
getLastComment in interface MethodFluent<A extends MethodFluent<A>>public String getMatchingComment(Predicate<String> predicate)
getMatchingComment in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasMatchingComment(Predicate<String> predicate)
hasMatchingComment in interface MethodFluent<A extends MethodFluent<A>>public A withComments(List<String> comments)
withComments in interface MethodFluent<A extends MethodFluent<A>>public A withComments(String... comments)
withComments in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasComments()
hasComments in interface MethodFluent<A extends MethodFluent<A>>public A addToAnnotations(Integer index, AnnotationRef item)
addToAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A setToAnnotations(Integer index, AnnotationRef item)
setToAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A addToAnnotations(AnnotationRef... items)
addToAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A addAllToAnnotations(Collection<AnnotationRef> items)
addAllToAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A removeFromAnnotations(AnnotationRef... items)
removeFromAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A removeAllFromAnnotations(Collection<AnnotationRef> items)
removeAllFromAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A removeMatchingFromAnnotations(Predicate<AnnotationRefBuilder> predicate)
removeMatchingFromAnnotations in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public List<AnnotationRef> getAnnotations()
getAnnotations in interface MethodFluent<A extends MethodFluent<A>>public List<AnnotationRef> buildAnnotations()
buildAnnotations in interface MethodFluent<A extends MethodFluent<A>>public AnnotationRef buildAnnotation(Integer index)
buildAnnotation in interface MethodFluent<A extends MethodFluent<A>>public AnnotationRef buildFirstAnnotation()
buildFirstAnnotation in interface MethodFluent<A extends MethodFluent<A>>public AnnotationRef buildLastAnnotation()
buildLastAnnotation in interface MethodFluent<A extends MethodFluent<A>>public AnnotationRef buildMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
buildMatchingAnnotation in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
hasMatchingAnnotation in interface MethodFluent<A extends MethodFluent<A>>public A withAnnotations(List<AnnotationRef> annotations)
withAnnotations in interface MethodFluent<A extends MethodFluent<A>>public A withAnnotations(AnnotationRef... annotations)
withAnnotations in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasAnnotations()
hasAnnotations in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> addNewAnnotation()
addNewAnnotation in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> addNewAnnotationLike(AnnotationRef item)
addNewAnnotationLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> setNewAnnotationLike(Integer index, AnnotationRef item)
setNewAnnotationLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> editAnnotation(Integer index)
editAnnotation in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> editFirstAnnotation()
editFirstAnnotation in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> editLastAnnotation()
editLastAnnotation in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.AnnotationsNested<A> editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
editMatchingAnnotation in interface MethodFluent<A extends MethodFluent<A>>public A addToParameters(Integer index, TypeParamDef item)
addToParameters in interface MethodFluent<A extends MethodFluent<A>>public A setToParameters(Integer index, TypeParamDef item)
setToParameters in interface MethodFluent<A extends MethodFluent<A>>public A addToParameters(TypeParamDef... items)
addToParameters in interface MethodFluent<A extends MethodFluent<A>>public A addAllToParameters(Collection<TypeParamDef> items)
addAllToParameters in interface MethodFluent<A extends MethodFluent<A>>public A removeFromParameters(TypeParamDef... items)
removeFromParameters in interface MethodFluent<A extends MethodFluent<A>>public A removeAllFromParameters(Collection<TypeParamDef> items)
removeAllFromParameters in interface MethodFluent<A extends MethodFluent<A>>public A removeMatchingFromParameters(Predicate<TypeParamDefBuilder> predicate)
removeMatchingFromParameters in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public List<TypeParamDef> getParameters()
getParameters in interface MethodFluent<A extends MethodFluent<A>>public List<TypeParamDef> buildParameters()
buildParameters in interface MethodFluent<A extends MethodFluent<A>>public TypeParamDef buildParameter(Integer index)
buildParameter in interface MethodFluent<A extends MethodFluent<A>>public TypeParamDef buildFirstParameter()
buildFirstParameter in interface MethodFluent<A extends MethodFluent<A>>public TypeParamDef buildLastParameter()
buildLastParameter in interface MethodFluent<A extends MethodFluent<A>>public TypeParamDef buildMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
buildMatchingParameter in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
hasMatchingParameter in interface MethodFluent<A extends MethodFluent<A>>public A withParameters(List<TypeParamDef> parameters)
withParameters in interface MethodFluent<A extends MethodFluent<A>>public A withParameters(TypeParamDef... parameters)
withParameters in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasParameters()
hasParameters in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> addNewParameter()
addNewParameter in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> addNewParameterLike(TypeParamDef item)
addNewParameterLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> setNewParameterLike(Integer index, TypeParamDef item)
setNewParameterLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> editParameter(Integer index)
editParameter in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> editFirstParameter()
editFirstParameter in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> editLastParameter()
editLastParameter in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ParametersNested<A> editMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
editMatchingParameter in interface MethodFluent<A extends MethodFluent<A>>public String getName()
getName in interface MethodFluent<A extends MethodFluent<A>>public A withName(String name)
withName in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasName()
hasName in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public TypeRef getReturnType()
getReturnType in interface MethodFluent<A extends MethodFluent<A>>public TypeRef buildReturnType()
buildReturnType in interface MethodFluent<A extends MethodFluent<A>>public A withReturnType(TypeRef returnType)
withReturnType in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasReturnType()
hasReturnType in interface MethodFluent<A extends MethodFluent<A>>public A withTypeParamRefReturnType(TypeParamRef typeParamRefReturnType)
withTypeParamRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.TypeParamRefReturnTypeNested<A> withNewTypeParamRefReturnType()
withNewTypeParamRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.TypeParamRefReturnTypeNested<A> withNewTypeParamRefReturnTypeLike(TypeParamRef item)
withNewTypeParamRefReturnTypeLike in interface MethodFluent<A extends MethodFluent<A>>public A withWildcardRefReturnType(WildcardRef wildcardRefReturnType)
withWildcardRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.WildcardRefReturnTypeNested<A> withNewWildcardRefReturnType()
withNewWildcardRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.WildcardRefReturnTypeNested<A> withNewWildcardRefReturnTypeLike(WildcardRef item)
withNewWildcardRefReturnTypeLike in interface MethodFluent<A extends MethodFluent<A>>public A withClassRefReturnType(ClassRef classRefReturnType)
withClassRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ClassRefReturnTypeNested<A> withNewClassRefReturnType()
withNewClassRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ClassRefReturnTypeNested<A> withNewClassRefReturnTypeLike(ClassRef item)
withNewClassRefReturnTypeLike in interface MethodFluent<A extends MethodFluent<A>>public A withPrimitiveRefReturnType(PrimitiveRef primitiveRefReturnType)
withPrimitiveRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.PrimitiveRefReturnTypeNested<A> withNewPrimitiveRefReturnType()
withNewPrimitiveRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.PrimitiveRefReturnTypeNested<A> withNewPrimitiveRefReturnTypeLike(PrimitiveRef item)
withNewPrimitiveRefReturnTypeLike in interface MethodFluent<A extends MethodFluent<A>>public A withVoidRefReturnType(VoidRef voidRefReturnType)
withVoidRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.VoidRefReturnTypeNested<A> withNewVoidRefReturnType()
withNewVoidRefReturnType in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.VoidRefReturnTypeNested<A> withNewVoidRefReturnTypeLike(VoidRef item)
withNewVoidRefReturnTypeLike in interface MethodFluent<A extends MethodFluent<A>>public A addToArguments(Integer index, Property item)
addToArguments in interface MethodFluent<A extends MethodFluent<A>>public A setToArguments(Integer index, Property item)
setToArguments in interface MethodFluent<A extends MethodFluent<A>>public A addToArguments(Property... items)
addToArguments in interface MethodFluent<A extends MethodFluent<A>>public A addAllToArguments(Collection<Property> items)
addAllToArguments in interface MethodFluent<A extends MethodFluent<A>>public A removeFromArguments(Property... items)
removeFromArguments in interface MethodFluent<A extends MethodFluent<A>>public A removeAllFromArguments(Collection<Property> items)
removeAllFromArguments in interface MethodFluent<A extends MethodFluent<A>>public A removeMatchingFromArguments(Predicate<PropertyBuilder> predicate)
removeMatchingFromArguments in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public List<Property> getArguments()
getArguments in interface MethodFluent<A extends MethodFluent<A>>public List<Property> buildArguments()
buildArguments in interface MethodFluent<A extends MethodFluent<A>>public Property buildArgument(Integer index)
buildArgument in interface MethodFluent<A extends MethodFluent<A>>public Property buildFirstArgument()
buildFirstArgument in interface MethodFluent<A extends MethodFluent<A>>public Property buildLastArgument()
buildLastArgument in interface MethodFluent<A extends MethodFluent<A>>public Property buildMatchingArgument(Predicate<PropertyBuilder> predicate)
buildMatchingArgument in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasMatchingArgument(Predicate<PropertyBuilder> predicate)
hasMatchingArgument in interface MethodFluent<A extends MethodFluent<A>>public A withArguments(List<Property> arguments)
withArguments in interface MethodFluent<A extends MethodFluent<A>>public A withArguments(Property... arguments)
withArguments in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasArguments()
hasArguments in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> addNewArgument()
addNewArgument in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> addNewArgumentLike(Property item)
addNewArgumentLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> setNewArgumentLike(Integer index, Property item)
setNewArgumentLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> editArgument(Integer index)
editArgument in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> editFirstArgument()
editFirstArgument in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> editLastArgument()
editLastArgument in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ArgumentsNested<A> editMatchingArgument(Predicate<PropertyBuilder> predicate)
editMatchingArgument in interface MethodFluent<A extends MethodFluent<A>>public boolean isVarArgPreferred()
isVarArgPreferred in interface MethodFluent<A extends MethodFluent<A>>public A withVarArgPreferred(boolean varArgPreferred)
withVarArgPreferred in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasVarArgPreferred()
hasVarArgPreferred in interface MethodFluent<A extends MethodFluent<A>>public A addToExceptions(Integer index, ClassRef item)
addToExceptions in interface MethodFluent<A extends MethodFluent<A>>public A setToExceptions(Integer index, ClassRef item)
setToExceptions in interface MethodFluent<A extends MethodFluent<A>>public A addToExceptions(ClassRef... items)
addToExceptions in interface MethodFluent<A extends MethodFluent<A>>public A addAllToExceptions(Collection<ClassRef> items)
addAllToExceptions in interface MethodFluent<A extends MethodFluent<A>>public A removeFromExceptions(ClassRef... items)
removeFromExceptions in interface MethodFluent<A extends MethodFluent<A>>public A removeAllFromExceptions(Collection<ClassRef> items)
removeAllFromExceptions in interface MethodFluent<A extends MethodFluent<A>>public A removeMatchingFromExceptions(Predicate<ClassRefBuilder> predicate)
removeMatchingFromExceptions in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public List<ClassRef> getExceptions()
getExceptions in interface MethodFluent<A extends MethodFluent<A>>public List<ClassRef> buildExceptions()
buildExceptions in interface MethodFluent<A extends MethodFluent<A>>public ClassRef buildException(Integer index)
buildException in interface MethodFluent<A extends MethodFluent<A>>public ClassRef buildFirstException()
buildFirstException in interface MethodFluent<A extends MethodFluent<A>>public ClassRef buildLastException()
buildLastException in interface MethodFluent<A extends MethodFluent<A>>public ClassRef buildMatchingException(Predicate<ClassRefBuilder> predicate)
buildMatchingException in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasMatchingException(Predicate<ClassRefBuilder> predicate)
hasMatchingException in interface MethodFluent<A extends MethodFluent<A>>public A withExceptions(List<ClassRef> exceptions)
withExceptions in interface MethodFluent<A extends MethodFluent<A>>public A withExceptions(ClassRef... exceptions)
withExceptions in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasExceptions()
hasExceptions in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> addNewException()
addNewException in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> addNewExceptionLike(ClassRef item)
addNewExceptionLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> setNewExceptionLike(Integer index, ClassRef item)
setNewExceptionLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> editException(Integer index)
editException in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> editFirstException()
editFirstException in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> editLastException()
editLastException in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.ExceptionsNested<A> editMatchingException(Predicate<ClassRefBuilder> predicate)
editMatchingException in interface MethodFluent<A extends MethodFluent<A>>public boolean isDefaultMethod()
isDefaultMethod in interface MethodFluent<A extends MethodFluent<A>>public A withDefaultMethod(boolean defaultMethod)
withDefaultMethod in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasDefaultMethod()
hasDefaultMethod in interface MethodFluent<A extends MethodFluent<A>>@Deprecated public Block getBlock()
getBlock in interface MethodFluent<A extends MethodFluent<A>>public Block buildBlock()
buildBlock in interface MethodFluent<A extends MethodFluent<A>>public A withBlock(Block block)
withBlock in interface MethodFluent<A extends MethodFluent<A>>public Boolean hasBlock()
hasBlock in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.BlockNested<A> withNewBlock()
withNewBlock in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.BlockNested<A> withNewBlockLike(Block item)
withNewBlockLike in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.BlockNested<A> editBlock()
editBlock in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.BlockNested<A> editOrNewBlock()
editOrNewBlock in interface MethodFluent<A extends MethodFluent<A>>public MethodFluent.BlockNested<A> editOrNewBlockLike(Block item)
editOrNewBlockLike in interface MethodFluent<A extends MethodFluent<A>>public boolean equals(Object o)
equals in class ModifierSupportFluentImpl<A extends MethodFluent<A>>public int hashCode()
hashCode in class ModifierSupportFluentImpl<A extends MethodFluent<A>>public String toString()
toString in class ModifierSupportFluentImpl<A extends MethodFluent<A>>public A withVarArgPreferred()
withVarArgPreferred in interface MethodFluent<A extends MethodFluent<A>>public A withDefaultMethod()
withDefaultMethod in interface MethodFluent<A extends MethodFluent<A>>Copyright © 2023. All rights reserved.