Class FileUtil
- java.lang.Object
-
- de.bmiag.tapir.annotationprocessing.FileUtil
-
public class FileUtil extends java.lang.Object
Provides some helper methods for file access.- Since:
- 2.0.0
- Author:
- Nils Christian Ehmke <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeToFileInTargetFolder(org.eclipse.xtend.lib.macro.declaration.NamedElement element, java.lang.String fileName, java.lang.CharSequence content, org.eclipse.xtend.lib.macro.CodeGenerationContext context)
Writes given content into a given file in the target folder of the project.
-
-
-
Method Detail
-
writeToFileInTargetFolder
public void writeToFileInTargetFolder(org.eclipse.xtend.lib.macro.declaration.NamedElement element, java.lang.String fileName, java.lang.CharSequence content, @Extension org.eclipse.xtend.lib.macro.CodeGenerationContext context)
Writes given content into a given file in the target folder of the project.- Parameters:
element
- The element which is used to determine the target folder.fileName
- The name of the file to write into - relative to the target folder.content
- The content to write.context
- TheCodeGenerationContext
.
-
-