org.eclipse.xtext.generator.serializer
Class JavaFile
java.lang.Object
org.eclipse.xtext.generator.serializer.JavaFile
- Direct Known Subclasses:
- JavaEMFFile
public class JavaFile
- extends java.lang.Object
- Author:
- Moritz Eysholdt - Initial contribution and API
Field Summary |
protected java.lang.String |
body
|
protected java.util.Map<java.lang.String,java.lang.String> |
imports
|
protected java.lang.String |
packageName
|
Constructor Summary |
JavaFile(java.lang.String packageName)
|
Method Summary |
java.lang.String |
imported(java.lang.Class<?> clazz)
|
java.lang.String |
imported(java.lang.String clazz)
|
void |
setBody(java.lang.String body)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
body
protected java.lang.String body
imports
protected java.util.Map<java.lang.String,java.lang.String> imports
packageName
protected java.lang.String packageName
JavaFile
public JavaFile(java.lang.String packageName)
imported
public java.lang.String imported(java.lang.Class<?> clazz)
imported
public java.lang.String imported(java.lang.String clazz)
setBody
public void setBody(java.lang.String body)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object