org.eclipse.xtext.generator.serializer
Class JavaFile

java.lang.Object
  extended by 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
 

Field Detail

body

protected java.lang.String body

imports

protected java.util.Map<java.lang.String,java.lang.String> imports

packageName

protected java.lang.String packageName
Constructor Detail

JavaFile

public JavaFile(java.lang.String packageName)
Method Detail

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