public virtual void WithBytecodeChecker(ByteCodeChecker checker) { if (_bytecodeChecker == null) { _bytecodeChecker = checker; } else { throw new System.NotSupportedException("multiple bytecode checkers"); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: protected Iterable<? extends org.neo4j.codegen.ByteCodes> compile(ClassLoader classpathLoader) throws org.neo4j.codegen.CompilationFailureException //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: protected internal override IEnumerable <ByteCodes> Compile(ClassLoader classpathLoader) { IList <ByteCodes> byteCodes = new List <ByteCodes>(_classes.Count); foreach (ClassByteCodeWriter writer in _classes.Values) { byteCodes.Add(writer.ToByteCodes()); } ByteCodeChecker checker = _configuration.bytecodeChecker(); if (checker != null) { checker.Check(classpathLoader, byteCodes); } return(byteCodes); }