pub fn generate_java_files(
ast: &Specification,
opts: &JavaGenOptions,
) -> Result<Vec<JavaFile>, JavaGenError>Expand description
Produces a list of Java source files from an IDL specification.
§Errors
JavaGenError::UnsupportedConstruct: IDL construct outside the current scope (e.g.interface,valuetype,fixed,any) or a C5.4-b constraint violated (e.g. bitset sum > 64 bit, bitmaskbit_bound > 64).JavaGenError::InvalidName: an identifier is empty or still collides with a Java keyword after sanitization.JavaGenError::InheritanceCycle: direct or indirect self-inheritance in the struct graph.