use of org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils in project neo4j by neo4j.
the class RecordFieldTypeVisitorTest method prepare.
@Before
public void prepare() {
Elements elements = compilationRule.getElements();
types = compilationRule.getTypes();
typeMirrorUtils = new TypeMirrorUtils(types, elements);
typeMirrorTestUtils = new TypeMirrorTestUtils(compilationRule);
}
use of org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils in project neo4j by neo4j.
the class UserAggregationFunctionVisitorTest method prepare.
@Before
public void prepare() {
Types types = compilationRule.getTypes();
Elements elements = compilationRule.getElements();
elementTestUtils = new ElementTestUtils(compilationRule);
final TypeMirrorUtils typeMirrorUtils = new TypeMirrorUtils(types, elements);
visitor = new UserAggregationFunctionVisitor(new FunctionVisitor<>(UserAggregationFunction.class, types, elements, typeMirrorUtils, function -> CustomNameExtractor.getName(function::name, function::value), false), types);
}
use of org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils 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);
}
use of org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils in project neo4j by neo4j.
the class ParameterTypeVisitorTest method prepare.
@Before
public void prepare() {
Elements elements = compilationRule.getElements();
types = compilationRule.getTypes();
typeMirrorUtils = new TypeMirrorUtils(types, elements);
typeMirrorTestUtils = new TypeMirrorTestUtils(compilationRule);
}
use of org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils in project neo4j by neo4j.
the class RecordTypeVisitorTest method prepare.
@Before
public void prepare() {
Types types = compilation.getTypes();
Elements elements = compilation.getElements();
TypeMirrorUtils typeMirrors = new TypeMirrorUtils(types, elements);
typeMirrorTestUtils = new TypeMirrorTestUtils(compilation);
visitor = new RecordTypeVisitor(types, typeMirrors);
}
Aggregations