com.github.mustachejava.codes
Class NotIterableCode

java.lang.Object
  extended by com.github.mustachejava.codes.DefaultCode
      extended by com.github.mustachejava.codes.NotIterableCode
All Implemented Interfaces:
Code, Iteration

public class NotIterableCode
extends DefaultCode
implements Iteration

Created by IntelliJ IDEA. User: spullara Date: 1/9/12 Time: 2:58 PM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from class com.github.mustachejava.codes.DefaultCode
appended, inited, logger, mustache, name, notfound, oh, returnThis, tc, type, wrapper
 
Constructor Summary
NotIterableCode(TemplateContext templateContext, DefaultMustacheFactory cf, Mustache mustache, java.lang.String variable)
           
 
Method Summary
 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.
 java.io.Writer next(java.io.Writer writer, java.lang.Object object, java.lang.Object[] scopes)
           
 
Methods inherited from class com.github.mustachejava.codes.DefaultCode
addScope, append, appendText, execute, get, getCodes, identity, init, runCodes, runIdentity, setCodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotIterableCode

public NotIterableCode(TemplateContext templateContext,
                       DefaultMustacheFactory cf,
                       Mustache mustache,
                       java.lang.String variable)
Method Detail

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 to
scopes - The scopes to evaluate the embedded names against.

next

public java.io.Writer next(java.io.Writer writer,
                           java.lang.Object object,
                           java.lang.Object[] scopes)
Specified by:
next in interface Iteration


Copyright © 2012. All Rights Reserved.