public class GeneratedJavaFile extends GeneratedFile
targetProject| Constructor and Description |
|---|
GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
JavaFormatter javaFormatter)
Instantiates a new generated java file.
|
GeneratedJavaFile(CompilationUnit compilationUnit,
String targetProject,
String fileEncoding,
JavaFormatter javaFormatter)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CompilationUnit |
getCompilationUnit()
This method is required by the Eclipse Java merger.
|
String |
getFileEncoding()
Gets the file encoding.
|
String |
getFileName()
Get the file name (without any path).
|
String |
getFormattedContent()
This method returns the entire contents of the generated file.
|
String |
getTargetPackage()
Get the target package for the file.
|
boolean |
isMergeable()
A Java file is mergeable if the getCompilationUnit() method returns a valid compilation unit.
|
getTargetProject, toStringpublic GeneratedJavaFile(CompilationUnit compilationUnit, String targetProject, String fileEncoding, JavaFormatter javaFormatter)
compilationUnit - the compilation unittargetProject - the target projectfileEncoding - the file encodingjavaFormatter - the java formatterpublic GeneratedJavaFile(CompilationUnit compilationUnit, String targetProject, JavaFormatter javaFormatter)
compilationUnit - the compilation unittargetProject - the target projectjavaFormatter - the java formatterpublic String getFormattedContent()
GeneratedFilegetFormattedContent in class GeneratedFilepublic String getFileName()
GeneratedFilegetFileName in class GeneratedFilepublic String getTargetPackage()
GeneratedFilegetTargetPackage in class GeneratedFilepublic CompilationUnit getCompilationUnit()
public boolean isMergeable()
isMergeable in class GeneratedFilepublic String getFileEncoding()
Copyright © 2006–2016 MyBatis.org. All rights reserved.