Package org.codehaus.groovy.tools.javac
Class RawJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
org.codehaus.groovy.tools.javac.RawJavaFileObject
- All Implemented Interfaces:
FileObject
,JavaFileObject
Represents a Java source file in file 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
ConstructorDescriptionRawJavaFileObject
(URI uri) Construct a RawJavaFileObject of the given kind and with the given URI. -
Method Summary
Modifier and TypeMethodDescriptionboolean
delete()
delete the Java source fileboolean
getCharContent
(boolean ignoreEncodingErrors) int
hashCode()
toString()
Methods inherited from class javax.tools.SimpleJavaFileObject
getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toUri
-
Constructor Details
-
RawJavaFileObject
Construct a RawJavaFileObject of the given kind and with the given URI.- Parameters:
uri
- the URI for this file object
-
-
Method Details
-
getCharContent
- Specified by:
getCharContent
in interfaceFileObject
- Overrides:
getCharContent
in classSimpleJavaFileObject
- Throws:
IOException
-
delete
public boolean delete()delete the Java source file- Specified by:
delete
in interfaceFileObject
- Overrides:
delete
in classSimpleJavaFileObject
- Returns:
true
if deleted successfully
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classSimpleJavaFileObject
-