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

com.querydsl.apt.Configuration Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
/*
 * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
 *
 * 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 com.querydsl.apt;

import java.lang.annotation.Annotation;
import java.util.Collection;
import java.util.List;
import java.util.Set;

import javax.annotation.Nullable;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.element.VariableElement;
import javax.lang.model.type.TypeMirror;

import com.google.common.base.Function;
import com.querydsl.codegen.*;
import com.querydsl.core.util.Annotations;

/**
 * {@code Configuration} defines the configuration options for APT-based Querydsl code generation
 *
 * @author tiwe
 *
 */
public interface Configuration {

    boolean isUnknownAsEmbedded();

    TypeMappings getTypeMappings();

    VisitorConfig getConfig(TypeElement e, List elements);

    Serializer getDTOSerializer();

    @Nullable
    Class getEntitiesAnnotation();

    @Nullable
    Class getEmbeddedAnnotation();

    @Nullable
    Class getEmbeddableAnnotation();

    Serializer getEmbeddableSerializer();

    Class getEntityAnnotation();

    Class getAlternativeEntityAnnotation();

    Set> getEntityAnnotations();

    Serializer getEntitySerializer();

    String getNamePrefix();

    String getNameSuffix();

    SerializerConfig getSerializerConfig(EntityType entityType);

    @Nullable
    Class getSkipAnnotation();

    @Nullable
    Class getSuperTypeAnnotation();

    Serializer getSupertypeSerializer();

    boolean isBlockedField(VariableElement field);

    boolean isBlockedGetter(ExecutableElement getter);

    boolean isUseFields();

    boolean isUseGetters();

    boolean isValidConstructor(ExecutableElement constructor);

    boolean isValidField(VariableElement field);

    boolean isValidGetter(ExecutableElement getter);

    Collection getKeywords();

    QueryTypeFactory getQueryTypeFactory();

    void addExcludedPackage(String packageName);

    void addExcludedClass(String className);

    TypeMirror getRealType(ExecutableElement method);

    TypeMirror getRealType(VariableElement field);

    boolean isExcludedPackage(String packageName);

    boolean isExcludedClass(String className);

    void inspect(Element element, Annotations annotations);

    boolean isStrictMode();

    Function getVariableNameFunction();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy