Class CompilationUnit.Result

  • Enclosing class:
    CompilationUnit

    public static class CompilationUnit.Result
    extends Object
    The result of the compilation that holds mapping for each className -> class.
    • Constructor Detail

      • Result

        public Result()
    • Method Detail

      • getClass

        public Class<?> getClass​(String className)
        Gets the compiled class by its class name
        Parameters:
        className - the class name
        Returns:
        the compiled class
      • getByteCode

        public byte[] getByteCode​(String className)
        Gets the compiled byte code by its class name
        Parameters:
        className - the class name
        Returns:
        the compiled byte code
      • size

        public int size()
        Number of classes in the result
      • getClassNames

        public Set<String> getClassNames()
        Set of the classes by their names