Class Code

All Implemented Interfaces:
FileObject, JavaFileObject
Direct Known Subclasses:
ExpressionCode

public class Code extends SimpleJavaFileObject
A file object used to represent Java source coming from a string.
  • Constructor Details

    • Code

      public Code(String className, String code)
      Constructs a new JavaCode file object.
      Parameters:
      className - the fully qualified class name
      code - the source code for the compilation unit represented by this file object
  • Method Details