| Package | Description |
|---|---|
| xyz.cofe.text.ast | |
| xyz.cofe.text.template | |
| xyz.cofe.text.template.ast |
| Modifier and Type | Field and Description |
|---|---|
static xyz.cofe.collection.NodesExtracter<AstNode,AstNode> |
AstNode.astNodeExtracter |
static xyz.cofe.collection.NodesExtracter<AstNode,AstNode> |
AstNode.astNodeExtracter |
| Modifier and Type | Method and Description |
|---|---|
protected AstNode[] |
AstNode.children(AstNode... nodes) |
| Modifier and Type | Method and Description |
|---|---|
protected AstNode[] |
AstNode.children(AstNode... nodes) |
static void |
AstNode.visit(AstNode tree,
xyz.cofe.collection.Visitor<AstNode> visitor) |
| Modifier and Type | Method and Description |
|---|---|
static void |
AstNode.visit(AstNode tree,
xyz.cofe.collection.Visitor<AstNode> visitor) |
| Modifier and Type | Field and Description |
|---|---|
protected Stack<AstNode> |
TemplateASTVisitor.path |
| Modifier and Type | Method and Description |
|---|---|
AstNode |
BasicTemplate.getAst() |
AstNode |
TemplateParser.parse(String source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TemplateASTVisitor.enter(AstNode obj) |
<ResultType,EvalCode,EvalText> |
TemplateParser.eval(AstNode tree,
xyz.cofe.collection.Func1<EvalText,String> evalText,
xyz.cofe.collection.Func1<EvalCode,String> evalCode,
xyz.cofe.collection.Func0<ResultType> initResult,
xyz.cofe.collection.Func2<ResultType,ResultType,EvalText> appendText,
xyz.cofe.collection.Func2<ResultType,ResultType,EvalCode> appendCode) |
xyz.cofe.collection.Func0<String> |
TemplateParser.evalAndPrint(AstNode tree,
xyz.cofe.collection.Func1<String,String> evalCode) |
xyz.cofe.collection.Func0<String> |
TemplateParser.evalAndPrint(AstNode tree,
xyz.cofe.collection.Func1<String,String> evalText,
xyz.cofe.collection.Func1<String,String> evalCode) |
void |
TemplateASTVisitor.exit(AstNode obj) |
void |
TemplateASTVisitor.visit(AstNode val) |
static void |
TemplateASTVisitor.visit(AstNode tree,
TemplateASTVisitor visitor) |
| Modifier and Type | Class and Description |
|---|---|
class |
Block |
class |
BlockBody |
class |
Code |
class |
Escape |
class |
Sequence |
class |
Text |
| Modifier and Type | Field and Description |
|---|---|
AstNode |
BlockBody.body |
AstNode |
Block.body |
AstNode |
Sequence.next |
AstNode |
Sequence.previous |
| Modifier and Type | Method and Description |
|---|---|
AstNode[] |
Text.getChildren() |
AstNode[] |
Sequence.getChildren() |
AstNode[] |
Escape.getChildren() |
AstNode[] |
Code.getChildren() |
AstNode[] |
BlockBody.getChildren() |
AstNode[] |
Block.getChildren() |
| Constructor and Description |
|---|
Block(Token begin,
AstNode body,
Token end) |
BlockBody(AstNode body) |
Sequence(AstNode previous,
AstNode next) |
Copyright © 2017. All rights reserved.