
io.sundr.codegen.model.MethodFluent Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2016 The original authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.sundr.codegen.model;
import io.sundr.builder.Fluent;
import io.sundr.builder.Nested;
import java.util.List;
import java.util.Set;
public interface MethodFluent> extends Fluent,ModifierSupportFluent{
public A addToAnnotations(ClassRef... items); public A removeFromAnnotations(ClassRef... items); public Set getAnnotations(); public A withAnnotations(Set annotations); public A withAnnotations(ClassRef... annotations); public AnnotationsNested addNewAnnotation(); public AnnotationsNested addNewAnnotationLike(ClassRef item); public A addToParameters(TypeParamDef... items); public A removeFromParameters(TypeParamDef... items); public Set getParameters(); public A withParameters(Set parameters); public A withParameters(TypeParamDef... parameters); public ParametersNested addNewParameter(); public ParametersNested addNewParameterLike(TypeParamDef item); public String getName(); public A withName(String name); public TypeRef getReturnType(); public A withReturnType(TypeRef returnType); public A addToArguments(Property... items); public A removeFromArguments(Property... items); public List getArguments(); public A withArguments(List arguments); public A withArguments(Property... arguments); public ArgumentsNested addNewArgument(); public ArgumentsNested addNewArgumentLike(Property item); public boolean isVarArgPreferred(); public A withVarArgPreferred(boolean varArgPreferred); public A addToExceptions(ClassRef... items); public A removeFromExceptions(ClassRef... items); public Set getExceptions(); public A withExceptions(Set exceptions); public A withExceptions(ClassRef... exceptions); public ExceptionsNested addNewException(); public ExceptionsNested addNewExceptionLike(ClassRef item); public Block getBlock(); public A withBlock(Block block); public BlockNested withNewBlock(); public BlockNested withNewBlockLike(Block item); public BlockNested editBlock();
public interface AnnotationsNested extends Nested,ClassRefFluent>{
public N endAnnotation(); public N and();
}
public interface ParametersNested extends Nested,TypeParamDefFluent>{
public N endParameter(); public N and();
}
public interface ArgumentsNested extends Nested,PropertyFluent>{
public N endArgument(); public N and();
}
public interface ExceptionsNested extends Nested,ClassRefFluent>{
public N endException(); public N and();
}
public interface BlockNested extends Nested,BlockFluent>{
public N endBlock(); public N and();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy