Package org.codehaus.groovy.tools.javac

## Class MemJavaFileObject

- java.lang.Object
- - javax.tools.SimpleJavaFileObject
  - - org.codehaus.groovy.tools.javac.MemJavaFileObject

- All Implemented Interfaces:
    `FileObject`, `JavaFileObject`

      public class MemJavaFileObject
      extends SimpleJavaFileObject

  Represents a Java source file in memory to compile
  Since:
    3.0.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface javax.tools.JavaFileObject

      `JavaFileObject.Kind`

  - ### Field Summary

    - ### Fields inherited from class javax.tools.SimpleJavaFileObject

      `kind, uri`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MemJavaFileObject​(ClassNode classNode, String src)` | Construct a MemJavaFileObject instance with given groovy class node and stub source code

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `CharSequence` | `getCharContent​(boolean ignoreEncodingErrors)` |
    `int` | `hashCode()` |
    `String` | `toString()` |

    - ### Methods inherited from class javax.tools.SimpleJavaFileObject

      `delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toUri`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### MemJavaFileObject

          public MemJavaFileObject​(ClassNode classNode,
                                   String src)

      Construct a MemJavaFileObject instance with given groovy class node and stub source code
      Parameters:
        `classNode` - the groovy class node
        `src` - the stub source code

  - ### Method Detail

    - #### getCharContent

          public CharSequence getCharContent​(boolean ignoreEncodingErrors)

      Specified by:
        `getCharContent` in interface `FileObject`
      Overrides:
        `getCharContent` in class `SimpleJavaFileObject`

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `SimpleJavaFileObject`