Пример #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: abstract SourceCompiler sourceCompilerFor(Configuration configuration, org.neo4j.codegen.CodeGenerationStrategy<?> strategy) throws org.neo4j.codegen.CodeGenerationStrategyNotSupportedException;
        internal abstract SourceCompiler sourceCompilerFor <T1>(Configuration configuration, CodeGenerationStrategy <T1> strategy);
 public CodeGenerationVisitor(CodeGenerationStrategy strategy)
 {
     this.strategy = strategy;
 }
Пример #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public SourceCompiler sourceCompilerFor(org.neo4j.codegen.CodeGenerationStrategy<?> strategy) throws org.neo4j.codegen.CodeGenerationStrategyNotSupportedException
        public virtual SourceCompiler SourceCompilerFor <T1>(CodeGenerationStrategy <T1> strategy)
        {
            return(Compiler.sourceCompilerFor(this, strategy));
        }
Пример #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: SourceCompiler sourceCompilerFor(Configuration configuration, org.neo4j.codegen.CodeGenerationStrategy<?> strategy) throws org.neo4j.codegen.CodeGenerationStrategyNotSupportedException
            internal override SourceCompiler sourceCompilerFor <T1>(Configuration configuration, CodeGenerationStrategy <T1> strategy)
            {
                JavaCompiler jdkCompiler = ToolProvider.SystemJavaCompiler;

                if (jdkCompiler == null)
                {
                    throw new CodeGenerationStrategyNotSupportedException(strategy, "no java source compiler available");
                }
                return(new JdkCompiler(jdkCompiler, configuration));
            }
Пример #5
0
 public CodeGenerationVisitor(CodeGenerationStrategy strategy)
 {
     this.strategy = strategy;
 }