com.github.mustachejava.codes
Class WriteCode
java.lang.Object
com.github.mustachejava.codes.DefaultCode
com.github.mustachejava.codes.WriteCode
- All Implemented Interfaces:
- Code
public class WriteCode
- extends DefaultCode
Created by IntelliJ IDEA.
User: spullara
Date: 1/9/12
Time: 3:13 PM
To change this template use File | Settings | File Templates.
Fields inherited from class com.github.mustachejava.codes.DefaultCode |
appended, inited, logger, mustache, name, notfound, oh, returnThis, tc, type, wrapper |
Constructor Summary |
WriteCode(java.lang.String text)
|
Method Summary |
void |
append(java.lang.String text)
|
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object[] scopes)
The default behavior is to run the codes and append the captured text. |
void |
identity(java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriteCode
public WriteCode(java.lang.String text)
identity
public void identity(java.io.Writer writer)
- Specified by:
identity
in interface Code
- Overrides:
identity
in class DefaultCode
append
public void append(java.lang.String text)
- Specified by:
append
in interface Code
- Overrides:
append
in class DefaultCode
execute
public java.io.Writer execute(java.io.Writer writer,
java.lang.Object[] scopes)
- Description copied from class:
DefaultCode
- The default behavior is to run the codes and append the captured text.
- Specified by:
execute
in interface Code
- Overrides:
execute
in class DefaultCode
- Parameters:
writer
- The writer to write the output toscopes
- The scopes to evaluate the embedded names against.
Copyright © 2012. All Rights Reserved.