Search in sources :

Example 1 with StoredProcedureVisitor

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

the class ProcedureProcessor method init.

@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);
    Types typeUtils = processingEnv.getTypeUtils();
    Elements elementUtils = processingEnv.getElementUtils();
    visitedProcedures.clear();
    messagePrinter = new MessagePrinter(processingEnv.getMessager());
    visitor = new StoredProcedureVisitor(typeUtils, elementUtils, processingEnv.getOptions().containsKey(IGNORE_CONTEXT_WARNINGS));
    duplicationPredicate = new DuplicatedProcedureValidator<>(elementUtils, sprocType, ProcedureProcessor::getCustomName);
}
Also used : Types(javax.lang.model.util.Types) MessagePrinter(org.neo4j.tooling.procedure.messages.MessagePrinter) StoredProcedureVisitor(org.neo4j.tooling.procedure.visitors.StoredProcedureVisitor) Elements(javax.lang.model.util.Elements)

Aggregations

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