public class MethodFluentImpl<A extends MethodFluent<A>> extends ModifierSupportFluentImpl<A> implements MethodFluent<A>
Modifier and Type | Class and Description |
---|---|
class |
MethodFluentImpl.AnnotationsNestedImpl<N> |
class |
MethodFluentImpl.ArgumentsNestedImpl<N> |
class |
MethodFluentImpl.BlockNestedImpl<N> |
class |
MethodFluentImpl.ClassRefReturnTypeNestedImpl<N> |
class |
MethodFluentImpl.ExceptionsNestedImpl<N> |
class |
MethodFluentImpl.ParametersNestedImpl<N> |
class |
MethodFluentImpl.PrimitiveRefReturnTypeNestedImpl<N> |
class |
MethodFluentImpl.TypeParamRefReturnTypeNestedImpl<N> |
class |
MethodFluentImpl.VoidRefReturnTypeNestedImpl<N> |
class |
MethodFluentImpl.WildcardRefReturnTypeNestedImpl<N> |
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>
_visitables
Constructor and Description |
---|
MethodFluentImpl() |
MethodFluentImpl(Method instance) |
getModifiers, hasModifiers, withModifiers
addToAttributes, addToAttributes, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributes
accept, aggregate, aggregate, build, build, builderOf
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModifiers, hasModifiers, withModifiers
addToAttributes, addToAttributes, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributes
public MethodFluentImpl()
public MethodFluentImpl(Method instance)
public A addToComments(int index, String item)
addToComments
in interface MethodFluent<A extends MethodFluent<A>>
public A setToComments(int 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(int 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 addNewComment(String arg1)
addNewComment
in interface MethodFluent<A extends MethodFluent<A>>
public A addNewComment(StringBuilder arg1)
addNewComment
in interface MethodFluent<A extends MethodFluent<A>>
public A addNewComment(StringBuffer arg1)
addNewComment
in interface MethodFluent<A extends MethodFluent<A>>
public A addToAnnotations(int index, AnnotationRef item)
addToAnnotations
in interface MethodFluent<A extends MethodFluent<A>>
public A setToAnnotations(int 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>>
@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(int 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(int index, AnnotationRef item)
setNewAnnotationLike
in interface MethodFluent<A extends MethodFluent<A>>
public MethodFluent.AnnotationsNested<A> editAnnotation(int 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(int index, TypeParamDef item)
addToParameters
in interface MethodFluent<A extends MethodFluent<A>>
public A setToParameters(int 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>>
@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(int 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(int index, TypeParamDef item)
setNewParameterLike
in interface MethodFluent<A extends MethodFluent<A>>
public MethodFluent.ParametersNested<A> editParameter(int 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>>
public A withNewName(String arg1)
withNewName
in interface MethodFluent<A extends MethodFluent<A>>
public A withNewName(StringBuilder arg1)
withNewName
in interface MethodFluent<A extends MethodFluent<A>>
public A withNewName(StringBuffer arg1)
withNewName
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 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 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 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 addToArguments(int index, Property item)
addToArguments
in interface MethodFluent<A extends MethodFluent<A>>
public A setToArguments(int 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>>
@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(int 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(int index, Property item)
setNewArgumentLike
in interface MethodFluent<A extends MethodFluent<A>>
public MethodFluent.ArgumentsNested<A> editArgument(int 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(int index, ClassRef item)
addToExceptions
in interface MethodFluent<A extends MethodFluent<A>>
public A setToExceptions(int 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>>
@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(int 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(int index, ClassRef item)
setNewExceptionLike
in interface MethodFluent<A extends MethodFluent<A>>
public MethodFluent.ExceptionsNested<A> editException(int 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>>
@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>>
Copyright © 2019 JBoss by Red Hat. All rights reserved.