Package com.querydsl.codegen.utils
Class AbstractEvaluatorFactory
java.lang.Object
com.querydsl.codegen.utils.AbstractEvaluatorFactory
- All Implemented Interfaces:
EvaluatorFactory
- Direct Known Subclasses:
ECJEvaluatorFactory,JDKEvaluatorFactory
- Author:
- tiwe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcompile(String source, ClassType projection, String[] names, Type[] types, String id, Map<String, Object> constants) <T> Evaluator<T>createEvaluator(String source, ClassType projection, String[] names, Type[] types, Class<?>[] classes, Map<String, Object> constants) Create a new Evaluator instance<T> Evaluator<T>createEvaluator(String source, Class<? extends T> projectionType, String[] names, Class<?>[] classes, Map<String, Object> constants) protected StringcreateSource(String source, ClassType projectionType, String[] names, Type[] types, String id, Map<String, Object> constants) protected MethodfindEvalMethod(Class<?> clazz) protected String
-
Field Details
-
loader
-
-
Constructor Details
-
AbstractEvaluatorFactory
public AbstractEvaluatorFactory()
-
-
Method Details
-
compile
protected abstract void compile(String source, ClassType projection, String[] names, Type[] types, String id, Map<String, Object> constants) throws IOException- Parameters:
source-projection-names-types-id-constants-- Throws:
IOException
-
createSource
protected String createSource(String source, ClassType projectionType, String[] names, Type[] types, String id, Map<String, Object> constants) throws IOException- Parameters:
source-projectionType-names-types-id-constants-- Returns:
- Throws:
IOException
-
createEvaluator
public <T> Evaluator<T> createEvaluator(String source, Class<? extends T> projectionType, String[] names, Class<?>[] classes, Map<String, Object> constants) - Specified by:
createEvaluatorin interfaceEvaluatorFactory- Returns:
-
createEvaluator
public <T> Evaluator<T> createEvaluator(String source, ClassType projection, String[] names, Type[] types, Class<?>[] classes, Map<String, Object> constants) Create a new Evaluator instance- Specified by:
createEvaluatorin interfaceEvaluatorFactory- Type Parameters:
T- projection type- Parameters:
source- expression in Java source code formprojection- type of the source expressionnames- names of the argumentstypes- types of the argumentsconstants-- Returns:
-
findEvalMethod
-
toId
-