org.peaseplate.internal.parser
Class TemplateCompiler
java.lang.Object
org.peaseplate.internal.parser.TemplateCompiler
public class TemplateCompiler
- extends java.lang.Object
code = {codeOfChunk [begin code (end | expansionBlock)]}
expansionBlock = codeOfExpansionChunkHead begin code (end | expansionBlock)
- Author:
- Manfred HANTSCHEL
Method Summary |
TemplateEngine |
getEngine()
|
TemplateScanner |
getScanner()
|
Template |
parse()
code = {codeOfChunk [block]}
block = begin code (end | expansionBlock)
expansionBlock = codeOfExpansionChunkHead block
code = {codeOfChunk [block]
block = chunk.isBlockHead code (chunk.isBlockTail | chunk.isExpansionBlock)]}
expansionBlock = codeOfExpansionChunkHead block |
protected Chunk[] |
parse(CompileContext context,
int level)
code = {codeOfChunk [block]}
block = begin code (end | expansionBlock)
expansionBlock = codeOfExpansionChunkHead block
code = {codeOfChunk [block]
block = chunk.isBlockHead code (chunk.isBlockTail | chunk.isExpansionBlock)]}
expansionBlock = codeOfExpansionChunkHead block |
protected Chunk |
parseExpansion(CompileContext context,
int level)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateCompiler
public TemplateCompiler(TemplateEngine engine,
TemplateLocator locator)
throws TemplateException
- Throws:
TemplateException
getEngine
public TemplateEngine getEngine()
getScanner
public TemplateScanner getScanner()
parse
public Template parse()
throws TemplateException
- code = {codeOfChunk [block]}
block = begin code (end | expansionBlock)
expansionBlock = codeOfExpansionChunkHead block
code = {codeOfChunk [block]
block = chunk.isBlockHead code (chunk.isBlockTail | chunk.isExpansionBlock)]}
expansionBlock = codeOfExpansionChunkHead block
- Throws:
TemplateException
parse
protected Chunk[] parse(CompileContext context,
int level)
throws TemplateException
- code = {codeOfChunk [block]}
block = begin code (end | expansionBlock)
expansionBlock = codeOfExpansionChunkHead block
code = {codeOfChunk [block]
block = chunk.isBlockHead code (chunk.isBlockTail | chunk.isExpansionBlock)]}
expansionBlock = codeOfExpansionChunkHead block
- Throws:
TemplateException
parseExpansion
protected Chunk parseExpansion(CompileContext context,
int level)
throws TemplateException
- Throws:
TemplateException
Copyright © 2008. All Rights Reserved.