org.peaseplate.internal.parser
Class TemplateCompiler

java.lang.Object
  extended by 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

Constructor Summary
TemplateCompiler(TemplateEngine engine, TemplateLocator locator)
           
 
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
 

Constructor Detail

TemplateCompiler

public TemplateCompiler(TemplateEngine engine,
                        TemplateLocator locator)
                 throws TemplateException
Throws:
TemplateException
Method Detail

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.