[Java] Class RawJavaFileObject
- org.codehaus.groovy.tools.javac.RawJavaFileObject
public class RawJavaFileObject extends SimpleJavaFileObject
Represents a Java source file in file to compile
- Since:
- 3.0.0
Constructor Summary
Constructor and description |
---|
RawJavaFileObject
(URI uri) Construct a RawJavaFileObject of the given kind and with the given URI. |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public boolean |
delete() delete the Java source file | |
public boolean |
equals(Object o) | |
public CharSequence |
getCharContent(boolean ignoreEncodingErrors) | |
public int |
hashCode() | |
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class SimpleJavaFileObject | toString, getName, delete, toUri, getLastModified, getKind, openOutputStream, openInputStream, openReader, isNameCompatible, getCharContent, openWriter, getNestingKind, getAccessLevel, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail
public 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
public boolean delete()
delete the Java source file
- Returns:
-
true
if deleted successfully
@Override public boolean equals(Object o)
public CharSequence getCharContent(boolean ignoreEncodingErrors)
@Override public int hashCode()
@Override public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/tools/javac/RawJavaFileObject.html