com.sampullara.mustache
Class BuilderCodeFactory
java.lang.Object
com.sampullara.mustache.BuilderCodeFactory
- All Implemented Interfaces:
- CodeFactory
public class BuilderCodeFactory
- extends java.lang.Object
- implements CodeFactory
The builder code factory is designed to work well with the default Mustache implementation.
In many cases where you significantly change the behavior of the default Mustache class you
may want to have your own CodeFactory that works with it.
|
Method Summary |
Code |
eof(int line)
|
Code |
extend(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int i)
|
Code |
function(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
|
Code |
ifIterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
|
Code |
iterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
|
Code |
name(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int i)
|
Code |
notIterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
|
Code |
partial(Mustache m,
java.lang.String variable,
java.lang.String file,
int line)
|
Code |
value(Mustache m,
java.lang.String name,
boolean encode,
int line)
|
Code |
write(java.lang.String s,
int line)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderCodeFactory
public BuilderCodeFactory()
iterable
public Code iterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
- Specified by:
iterable in interface CodeFactory
function
public Code function(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
- Specified by:
function in interface CodeFactory
ifIterable
public Code ifIterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
- Specified by:
ifIterable in interface CodeFactory
notIterable
public Code notIterable(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int line)
- Specified by:
notIterable in interface CodeFactory
partial
public Code partial(Mustache m,
java.lang.String variable,
java.lang.String file,
int line)
throws MustacheException
- Specified by:
partial in interface CodeFactory
- Throws:
MustacheException
value
public Code value(Mustache m,
java.lang.String name,
boolean encode,
int line)
- Specified by:
value in interface CodeFactory
write
public Code write(java.lang.String s,
int line)
- Specified by:
write in interface CodeFactory
eof
public Code eof(int line)
- Specified by:
eof in interface CodeFactory
extend
public Code extend(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int i)
throws MustacheException
- Specified by:
extend in interface CodeFactory
- Throws:
MustacheException
name
public Code name(Mustache m,
java.lang.String variable,
java.util.List<Code> codes,
java.lang.String file,
int i)
- Specified by:
name in interface CodeFactory
Copyright © 2011. All Rights Reserved.