Search in sources :

Example 1 with UserFunctionVisitor

use of org.neo4j.tooling.procedure.visitors.UserFunctionVisitor in project neo4j by neo4j.

the class UserFunctionProcessor method init.

@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);
    Types typeUtils = processingEnv.getTypeUtils();
    Elements elementUtils = processingEnv.getElementUtils();
    visitedFunctions.clear();
    messagePrinter = new MessagePrinter(processingEnv.getMessager());
    visitor = new UserFunctionVisitor(typeUtils, elementUtils, new TypeMirrorUtils(typeUtils, elementUtils));
    duplicationPredicate = new DuplicatedProcedureValidator<>(elementUtils, userFunctionType, UserFunctionProcessor::getCustomName);
}
Also used : Types(javax.lang.model.util.Types) UserFunctionVisitor(org.neo4j.tooling.procedure.visitors.UserFunctionVisitor) MessagePrinter(org.neo4j.tooling.procedure.messages.MessagePrinter) Elements(javax.lang.model.util.Elements) TypeMirrorUtils(org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils)

Aggregations

Elements (javax.lang.model.util.Elements)1 Types (javax.lang.model.util.Types)1 TypeMirrorUtils (org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils)1 MessagePrinter (org.neo4j.tooling.procedure.messages.MessagePrinter)1 UserFunctionVisitor (org.neo4j.tooling.procedure.visitors.UserFunctionVisitor)1