| Constructor and Description |
|---|
FormattingFiler(Filer delegate) |
FormattingFiler(Filer delegate,
Messager messager)
Create a new
FormattingFiler. |
| Modifier and Type | Method and Description |
|---|---|
JavaFileObject |
createClassFile(CharSequence name,
Element... originatingElements) |
FileObject |
createResource(JavaFileManager.Location location,
CharSequence pkg,
CharSequence relativeName,
Element... originatingElements) |
JavaFileObject |
createSourceFile(CharSequence name,
Element... originatingElements) |
FileObject |
getResource(JavaFileManager.Location location,
CharSequence pkg,
CharSequence relativeName) |
public FormattingFiler(Filer delegate)
delegate - filer to decoratepublic FormattingFiler(Filer delegate, @Nullable Messager messager)
FormattingFiler. An optional Messager may be specified to make
logs more visible.delegate - filer to decoratemessager - to log warnings topublic JavaFileObject createSourceFile(CharSequence name, Element... originatingElements) throws IOException
createSourceFile in interface FilerIOExceptionpublic JavaFileObject createClassFile(CharSequence name, Element... originatingElements) throws IOException
createClassFile in interface FilerIOExceptionpublic FileObject createResource(JavaFileManager.Location location, CharSequence pkg, CharSequence relativeName, Element... originatingElements) throws IOException
createResource in interface FilerIOExceptionpublic FileObject getResource(JavaFileManager.Location location, CharSequence pkg, CharSequence relativeName) throws IOException
getResource in interface FilerIOExceptionCopyright © 2015–2017 Google Inc.. All rights reserved.