Class MethodFluent<A extends MethodFluent<A>>

    • Constructor Detail

      • MethodFluent

        public MethodFluent()
      • MethodFluent

        public MethodFluent​(io.sundr.model.Method instance)
    • Method Detail

      • copyInstance

        protected void copyInstance​(io.sundr.model.Method instance)
      • addToComments

        public A addToComments​(int index,
                               String item)
      • setToComments

        public A setToComments​(int index,
                               String item)
      • addToComments

        public A addToComments​(String... items)
      • removeFromComments

        public A removeFromComments​(String... items)
      • removeAllFromComments

        public A removeAllFromComments​(Collection<String> items)
      • getComment

        public String getComment​(int index)
      • getFirstComment

        public String getFirstComment()
      • getLastComment

        public String getLastComment()
      • hasMatchingComment

        public boolean hasMatchingComment​(Predicate<String> predicate)
      • withComments

        public A withComments​(List<String> comments)
      • withComments

        public A withComments​(String... comments)
      • hasComments

        public boolean hasComments()
      • addToAnnotations

        public A addToAnnotations​(int index,
                                  io.sundr.model.AnnotationRef item)
      • setToAnnotations

        public A setToAnnotations​(int index,
                                  io.sundr.model.AnnotationRef item)
      • addToAnnotations

        public A addToAnnotations​(io.sundr.model.AnnotationRef... items)
      • addAllToAnnotations

        public A addAllToAnnotations​(Collection<io.sundr.model.AnnotationRef> items)
      • removeFromAnnotations

        public A removeFromAnnotations​(io.sundr.model.AnnotationRef... items)
      • removeAllFromAnnotations

        public A removeAllFromAnnotations​(Collection<io.sundr.model.AnnotationRef> items)
      • buildAnnotations

        public List<io.sundr.model.AnnotationRef> buildAnnotations()
      • buildAnnotation

        public io.sundr.model.AnnotationRef buildAnnotation​(int index)
      • buildFirstAnnotation

        public io.sundr.model.AnnotationRef buildFirstAnnotation()
      • buildLastAnnotation

        public io.sundr.model.AnnotationRef buildLastAnnotation()
      • withAnnotations

        public A withAnnotations​(List<io.sundr.model.AnnotationRef> annotations)
      • withAnnotations

        public A withAnnotations​(io.sundr.model.AnnotationRef... annotations)
      • hasAnnotations

        public boolean hasAnnotations()
      • addToParameters

        public A addToParameters​(int index,
                                 io.sundr.model.TypeParamDef item)
      • setToParameters

        public A setToParameters​(int index,
                                 io.sundr.model.TypeParamDef item)
      • addToParameters

        public A addToParameters​(io.sundr.model.TypeParamDef... items)
      • addAllToParameters

        public A addAllToParameters​(Collection<io.sundr.model.TypeParamDef> items)
      • removeFromParameters

        public A removeFromParameters​(io.sundr.model.TypeParamDef... items)
      • removeAllFromParameters

        public A removeAllFromParameters​(Collection<io.sundr.model.TypeParamDef> items)
      • buildParameters

        public List<io.sundr.model.TypeParamDef> buildParameters()
      • buildParameter

        public io.sundr.model.TypeParamDef buildParameter​(int index)
      • buildFirstParameter

        public io.sundr.model.TypeParamDef buildFirstParameter()
      • buildLastParameter

        public io.sundr.model.TypeParamDef buildLastParameter()
      • withParameters

        public A withParameters​(List<io.sundr.model.TypeParamDef> parameters)
      • withParameters

        public A withParameters​(io.sundr.model.TypeParamDef... parameters)
      • hasParameters

        public boolean hasParameters()
      • getName

        public String getName()
      • withName

        public A withName​(String name)
      • hasName

        public boolean hasName()
      • buildReturnType

        public io.sundr.model.TypeRef buildReturnType()
      • withReturnType

        public A withReturnType​(io.sundr.model.TypeRef returnType)
      • hasReturnType

        public boolean hasReturnType()
      • addToArguments

        public A addToArguments​(int index,
                                io.sundr.model.Property item)
      • setToArguments

        public A setToArguments​(int index,
                                io.sundr.model.Property item)
      • addToArguments

        public A addToArguments​(io.sundr.model.Property... items)
      • addAllToArguments

        public A addAllToArguments​(Collection<io.sundr.model.Property> items)
      • removeFromArguments

        public A removeFromArguments​(io.sundr.model.Property... items)
      • removeAllFromArguments

        public A removeAllFromArguments​(Collection<io.sundr.model.Property> items)
      • buildArguments

        public List<io.sundr.model.Property> buildArguments()
      • buildArgument

        public io.sundr.model.Property buildArgument​(int index)
      • buildFirstArgument

        public io.sundr.model.Property buildFirstArgument()
      • buildLastArgument

        public io.sundr.model.Property buildLastArgument()
      • buildMatchingArgument

        public io.sundr.model.Property buildMatchingArgument​(Predicate<PropertyBuilder> predicate)
      • withArguments

        public A withArguments​(List<io.sundr.model.Property> arguments)
      • withArguments

        public A withArguments​(io.sundr.model.Property... arguments)
      • hasArguments

        public boolean hasArguments()
      • isVarArgPreferred

        public boolean isVarArgPreferred()
      • withVarArgPreferred

        public A withVarArgPreferred​(boolean varArgPreferred)
      • hasVarArgPreferred

        public boolean hasVarArgPreferred()
      • addToExceptions

        public A addToExceptions​(int index,
                                 io.sundr.model.ClassRef item)
      • setToExceptions

        public A setToExceptions​(int index,
                                 io.sundr.model.ClassRef item)
      • addToExceptions

        public A addToExceptions​(io.sundr.model.ClassRef... items)
      • addAllToExceptions

        public A addAllToExceptions​(Collection<io.sundr.model.ClassRef> items)
      • removeFromExceptions

        public A removeFromExceptions​(io.sundr.model.ClassRef... items)
      • removeAllFromExceptions

        public A removeAllFromExceptions​(Collection<io.sundr.model.ClassRef> items)
      • buildExceptions

        public List<io.sundr.model.ClassRef> buildExceptions()
      • buildException

        public io.sundr.model.ClassRef buildException​(int index)
      • buildFirstException

        public io.sundr.model.ClassRef buildFirstException()
      • buildLastException

        public io.sundr.model.ClassRef buildLastException()
      • buildMatchingException

        public io.sundr.model.ClassRef buildMatchingException​(Predicate<ClassRefBuilder> predicate)
      • withExceptions

        public A withExceptions​(List<io.sundr.model.ClassRef> exceptions)
      • withExceptions

        public A withExceptions​(io.sundr.model.ClassRef... exceptions)
      • hasExceptions

        public boolean hasExceptions()
      • isDefaultMethod

        public boolean isDefaultMethod()
      • withDefaultMethod

        public A withDefaultMethod​(boolean defaultMethod)
      • hasDefaultMethod

        public boolean hasDefaultMethod()
      • buildBlock

        public io.sundr.model.Block buildBlock()
      • withBlock

        public A withBlock​(io.sundr.model.Block block)
      • hasBlock

        public boolean hasBlock()
      • builder

        protected static <T> io.sundr.builder.VisitableBuilder<T,​?> builder​(Object item)
      • withVarArgPreferred

        public A withVarArgPreferred()
      • withDefaultMethod

        public A withDefaultMethod()