예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static CodeGenerator generateCode(ClassLoader loader, CodeGenerationStrategy<?> strategy, CodeGeneratorOption... options) throws CodeGenerationNotSupportedException
        public static CodeGenerator GenerateCode <T1>(ClassLoader loader, CodeGenerationStrategy <T1> strategy, params CodeGeneratorOption[] options)
        {
            return(codeGenerator(requireNonNull(loader, "ClassLoader"), strategy, options));
        }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: static CodeGenerator codeGenerator(ClassLoader loader, CodeGenerationStrategy<?> strategy, CodeGeneratorOption... options) throws CodeGenerationNotSupportedException
        internal static CodeGenerator CodeGenerator <T1>(ClassLoader loader, CodeGenerationStrategy <T1> strategy, params CodeGeneratorOption[] options)
        {
            return(ApplyTo(new Choice(strategy), options).generateCode(loader, options));
        }
예제 #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static CodeGenerator generateCode(CodeGenerationStrategy<?> strategy, CodeGeneratorOption... options) throws CodeGenerationNotSupportedException
        public static CodeGenerator GenerateCode <T1>(CodeGenerationStrategy <T1> strategy, params CodeGeneratorOption[] options)
        {
            return(GenerateCode(Thread.CurrentThread.ContextClassLoader, strategy, options));
        }