forked from spullara/mustache.java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode.java
More file actions
35 lines (23 loc) · 757 Bytes
/
Code.java
File metadata and controls
35 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.github.mustachejava;
import com.github.mustachejava.util.IndentWriter;
import com.github.mustachejava.util.Node;
import java.io.Writer;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Code objects that are executed in order to evaluate the template
*/
public interface Code {
IndentWriter execute(IndentWriter writer, List<Object> scopes);
void identity(IndentWriter writer);
void append(String text);
Code[] getCodes();
void setCodes(Code[] codes);
void init();
@SuppressWarnings("CloneDoesntDeclareCloneNotSupportedException")
Object clone();
Object clone(Set<Code> seen);
String getName();
Node invert(Node node, String text, AtomicInteger position);
}