
br.com.objectos.way.pojo.plugin.ContributionExe Maven / Gradle / Ivy
/*
* Copyright 2014-2015 Objectos, Fábrica de Software LTDA.
*
* 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 br.com.objectos.way.pojo.plugin;
import java.util.List;
/**
* @author [email protected] (Marcio Endo)
*/
class ContributionExe {
private final Contribution contribution;
private final Class> action;
public ContributionExe(Contribution contribution, Class> action) {
this.contribution = contribution;
this.action = action;
}
public void accept(com.squareup.javapoet.TypeSpec.Builder type) {
contribution.accept(type);
}
public void acceptBuilder(BuilderConfiguration builder) {
contribution.acceptBuilder(builder, action);
}
public ContributionExe acceptGeneratedBy(GeneratedBy generatedBy) {
contribution.acceptGeneratedBy(generatedBy, action);
return this;
}
public void acceptInvalidateMethod(InvalidateMethod invalidateMethod) {
contribution.acceptInvalidateMethod(invalidateMethod);
}
public void acceptPojoConstructor(PojoConstructor constructor) {
contribution.acceptPojoConstructor(constructor);
}
public void acceptPojoPropertyPlugin(List pojoPropertyPluginList) {
contribution.acceptPojoPropertyPlugin(pojoPropertyPluginList);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy