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
 
 public class RawJavaFileObject extends SimpleJavaFileObject Represents a Java source file in file to compile- Since:
- 3.0.0
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObjectJavaFileObject.Kind
 
- 
 - 
Field Summary- 
Fields inherited from class javax.tools.SimpleJavaFileObjectkind, uri
 
- 
 - 
Constructor SummaryConstructors Constructor Description RawJavaFileObject(URI uri)Construct a RawJavaFileObject of the given kind and with the given URI.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete()delete the Java source filebooleanequals(Object o)CharSequencegetCharContent(boolean ignoreEncodingErrors)inthashCode()StringtoString()- 
Methods inherited from class javax.tools.SimpleJavaFileObjectgetAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toUri
 
- 
 
- 
- 
- 
Constructor Detail- 
RawJavaFileObjectpublic RawJavaFileObject(URI uri) Construct a RawJavaFileObject of the given kind and with the given URI.- Parameters:
- uri- the URI for this file object
 
 
- 
 - 
Method Detail- 
getCharContentpublic CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException - Specified by:
- getCharContentin interface- FileObject
- Overrides:
- getCharContentin class- SimpleJavaFileObject
- Throws:
- IOException
 
 - 
deletepublic boolean delete() delete the Java source file- Specified by:
- deletein interface- FileObject
- Overrides:
- deletein class- SimpleJavaFileObject
- Returns:
- trueif deleted successfully
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- SimpleJavaFileObject
 
 
- 
 
-