org.granite.generator.gsp
Class GroovyTemplate

java.lang.Object
  extended by org.granite.generator.gsp.GroovyTemplate
All Implemented Interfaces:
Template

public class GroovyTemplate
extends Object
implements Template

Author:
Franck WOLFF

Method Summary
 void compile()
           
 boolean equals(Object obj)
           
 void execute(Map<String,Object> bindings, Writer out)
           
 long getLastModified()
           
 String getMarkup()
           
 String getSource()
           
 URI getUri()
           
 int hashCode()
           
 boolean isBase()
           
 boolean isOutdated()
           
protected  long readLastModified()
           
protected  void reset()
           
protected  void reset(boolean cleanSource)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

protected void reset(boolean cleanSource)

reset

protected void reset()

getUri

public URI getUri()
Specified by:
getUri in interface Template

getLastModified

public long getLastModified()

readLastModified

protected long readLastModified()

isOutdated

public boolean isOutdated()

isBase

public boolean isBase()
Specified by:
isBase in interface Template

getMarkup

public String getMarkup()
Specified by:
getMarkup in interface Template

getSource

public String getSource()
Specified by:
getSource in interface Template

compile

public void compile()
             throws IOException,
                    TemplateParsingException,
                    TemplateCompilationException
Specified by:
compile in interface Template
Throws:
IOException
TemplateParsingException
TemplateCompilationException

execute

public void execute(Map<String,Object> bindings,
                    Writer out)
             throws IOException,
                    TemplateParsingException,
                    TemplateCompilationException,
                    TemplateExecutionException
Specified by:
execute in interface Template
Throws:
IOException
TemplateParsingException
TemplateCompilationException
TemplateExecutionException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object