generate interface for Java class