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
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
ConstructorsConstructorDescriptionMemJavaFileObject(String className, String src) Construct a MemJavaFileObject instance with given class name and source codeMemJavaFileObject(ClassNode classNode, String src) Construct a MemJavaFileObject instance with given class node and source code - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetCharContent(boolean ignoreEncodingErrors) inthashCode()toString()Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toUri 
- 
Constructor Details
- 
MemJavaFileObject
Construct a MemJavaFileObject instance with given class node and source code- Parameters:
 classNode- the class nodesrc- the source code
 - 
MemJavaFileObject
Construct a MemJavaFileObject instance with given class name and source code- Parameters:
 className- the class namesrc- the source code
 
 - 
 - 
Method Details
- 
getCharContent
- Specified by:
 getCharContentin interfaceFileObject- Overrides:
 getCharContentin classSimpleJavaFileObject
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
- Overrides:
 toStringin classSimpleJavaFileObject
 
 -