All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sundr.codegen.model.BlockFluent Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
/*
 *      Copyright 2019 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 io.sundr.builder.Predicate;
import io.sundr.builder.VisitableBuilder;

import java.util.Collection;
import java.util.List;

public interface BlockFluent> extends Fluent{


    public A addToStatements(VisitableBuilder builder);
    public A addToStatements(int index, VisitableBuilder builder);
    public A addToStatements(int index, Statement item);
    public A setToStatements(int index, Statement item);
    public A addToStatements(Statement... items);
    public A addAllToStatements(Collection items);
    public A removeFromStatements(VisitableBuilder builder);
    public A removeFromStatements(Statement... items);
    public A removeAllFromStatements(Collection items);

/**
 * This method has been deprecated, please use method buildStatements instead.
 * @return The buildable object.
 */
@Deprecated public List getStatements();
    public List buildStatements();
    public Statement buildStatement(int index);
    public Statement buildFirstStatement();
    public Statement buildLastStatement();
    public Statement buildMatchingStatement(Predicate> predicate);
    public Boolean hasMatchingStatement(Predicate> predicate);
    public A withStatements(List statements);
    public A withStatements(Statement... statements);
    public Boolean hasStatements();
    public A addToStringStatementStatements(int index, StringStatement item);
    public A setToStringStatementStatements(int index, StringStatement item);
    public A addToStringStatementStatements(StringStatement... items);
    public A addAllToStringStatementStatements(Collection items);
    public A removeFromStringStatementStatements(StringStatement... items);
    public A removeAllFromStringStatementStatements(Collection items);
    public BlockFluent.StringStatementStatementsNested setNewStringStatementStatementLike(int index, StringStatement item);
    public BlockFluent.StringStatementStatementsNested addNewStringStatementStatement();
    public BlockFluent.StringStatementStatementsNested addNewStringStatementStatementLike(StringStatement item);
    public A addNewStringStatementStatement(final String data);
    public A addNewStringStatementStatement(final String data, final Object[] parameters);

    public interface StringStatementStatementsNested extends Nested,StringStatementFluent>{

        
    public N and();    public N endStringStatementStatement();
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy