org.eclipse.xpand2.output
Class OutputImpl
java.lang.Object
org.eclipse.xpand2.output.OutputImpl
- All Implemented Interfaces:
- Output
- Direct Known Subclasses:
- BlankLineSkippingOutput
public class OutputImpl
- extends java.lang.Object
- implements Output
*
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileHandles
protected java.util.Stack<FileHandle> fileHandles
OutputImpl
public OutputImpl()
setAutomaticHyphens
public void setAutomaticHyphens(boolean automaticHyphenation)
addOutlet
public void addOutlet(Outlet outlet)
- Specified by:
addOutlet
in interface Output
getOutlet
public Outlet getOutlet(java.lang.String name)
- Specified by:
getOutlet
in interface Output
current
protected FileHandle current()
current__testONLY
public FileHandle current__testONLY()
- DO NOT CALL THIS METHOD - FOR TESTS ONLY
write
public void write(java.lang.String bytes)
- Specified by:
write
in interface Output
removeWSAfterLastNewline
public void removeWSAfterLastNewline(java.lang.CharSequence cs)
trimUntilNewline
public java.lang.String trimUntilNewline(java.lang.String bytes)
resolveOutlet
public static resolveOutlet(java.util.Map<java.lang.String,Outlet> allOutlets,
java.lang.String path,
java.lang.String outletName)
openFile
public void openFile(java.lang.String path,
java.lang.String outletName)
- Specified by:
openFile
in interface Output
closeFile
public void closeFile()
- Specified by:
closeFile
in interface Output
pushStatement
public void pushStatement(SyntaxElement stmt,
XpandExecutionContext ctx)
- Specified by:
pushStatement
in interface Output
popStatement
public SyntaxElement popStatement()
- Specified by:
popStatement
in interface Output