예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void prepare()
        public virtual void Prepare()
        {
            Types    types    = CompilationRule.Types;
            Elements elements = CompilationRule.Elements;

            _elementTestUtils = new ElementTestUtils(CompilationRule);
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils typeMirrorUtils = new org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils(types, elements);
            TypeMirrorUtils typeMirrorUtils = new TypeMirrorUtils(types, elements);

            _visitor = new UserFunctionVisitor(new FunctionVisitor <UserFunction>(typeof(UserFunction), types, elements, typeMirrorUtils, function => CustomNameExtractor.getName(function.name, function.value), false));
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void prepare()
        public virtual void Prepare()
        {
            _elementTestUtils = new ElementTestUtils(CompilationRule);
        }
예제 #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void prepare()
        public virtual void Prepare()
        {
            _elementTestUtils    = new ElementTestUtils(CompilationRule);
            _contextFieldVisitor = new ContextFieldVisitor(CompilationRule.Types, CompilationRule.Elements, false);
        }
예제 #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void prepare()
        public virtual void Prepare()
        {
            _elementTestUtils = new ElementTestUtils(CompilationRule);
            _fieldVisitor     = new FieldVisitor(CompilationRule.Types, CompilationRule.Elements, true);
        }