use of org.neo4j.tooling.procedure.messages.MessagePrinter in project neo4j by neo4j.
the class PerformsWriteProcessor method init.
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
messagePrinter = new MessagePrinter(processingEnv.getMessager());
visitor = new PerformsWriteMethodVisitor();
}
use of org.neo4j.tooling.procedure.messages.MessagePrinter in project neo4j by neo4j.
the class DuplicationAwareBaseProcessor method init.
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
messagePrinter = new MessagePrinter(processingEnv.getMessager());
duplicationValidator = new DuplicatedExtensionValidator<>(processingEnv.getElementUtils(), supportedAnnotationType, customNameFunction);
visitor = visitorSupplier.apply(processingEnv);
}
use of org.neo4j.tooling.procedure.messages.MessagePrinter 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);
}
use of org.neo4j.tooling.procedure.messages.MessagePrinter 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);
}
Aggregations