Package com.github.mustachejava.codes
Class ExtendCode
- java.lang.Object
-
- com.github.mustachejava.codes.DefaultCode
-
- com.github.mustachejava.codes.PartialCode
-
- com.github.mustachejava.codes.ExtendCode
-
- All Implemented Interfaces:
Code,java.lang.Cloneable
public class ExtendCode extends PartialCode
Extending a template through in-place replacement of the overridden codes. User: sam Date: 11/27/11 Time: 10:39 AM
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultMustacheFactorymf-
Fields inherited from class com.github.mustachejava.codes.PartialCode
dir, extension, isRecursive, partial, recrusionLimit
-
Fields inherited from class com.github.mustachejava.codes.DefaultCode
appended, binding, df, mustache, name, oh, returnThis, tc, type
-
-
Constructor Summary
Constructors Constructor Description ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()private Code[]replaceCodes(Code[] supercodes, java.util.Map<java.lang.String,ExtendNameCode> replaceMap, java.util.Set<Code> seen)-
Methods inherited from class com.github.mustachejava.codes.PartialCode
execute, executePartial, getCodes, identity, partialName, setCodes
-
Methods inherited from class com.github.mustachejava.codes.DefaultCode
addScope, append, appendText, clone, clone, filterText, get, getName, invert, matchAppended, run, runIdentity, tag
-
-
-
-
Field Detail
-
mf
private final DefaultMustacheFactory mf
-
-
Constructor Detail
-
ExtendCode
public ExtendCode(TemplateContext tc, DefaultMustacheFactory mf, Mustache codes, java.lang.String name) throws MustacheException
- Throws:
MustacheException
-
-
Method Detail
-
replaceCodes
private Code[] replaceCodes(Code[] supercodes, java.util.Map<java.lang.String,ExtendNameCode> replaceMap, java.util.Set<Code> seen)
-
init
public void init()
- Specified by:
initin interfaceCode- Overrides:
initin classPartialCode
-
-