|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.render.groovy.GroovyTemplateEngine.SimpleTemplate
private static class GroovyTemplateEngine.SimpleTemplate
Field Summary | |
---|---|
private groovy.lang.Binding |
binding
|
private java.util.Map |
map
|
private groovy.lang.Script |
script
|
Constructor Summary | |
---|---|
private |
GroovyTemplateEngine.SimpleTemplate()
|
Method Summary | |
---|---|
private void |
endScript(java.io.StringWriter sw)
|
void |
finalize()
|
private void |
groovyExpression(java.io.Reader reader,
java.io.StringWriter sw)
Closes the currently open write and writes out the following text as a GString expression until it reaches an end %>. |
private void |
groovySection(java.io.Reader reader,
java.io.StringWriter sw)
Closes the currently open write and writes the following text as normal Groovy script code until it reaches an end %>. |
groovy.lang.Writable |
make()
|
groovy.lang.Writable |
make(java.util.Map map)
|
private java.lang.String |
parse(java.io.Reader reader)
Parse the text document looking for <% or <%= and then call out to the appropriate handler, otherwise copy the text directly into the script while escaping quotes. |
void |
setBinding(java.util.Map map)
Set the binding for the template. |
private void |
startScript(java.io.StringWriter sw)
|
java.lang.String |
toString()
Convert the template and binding into a result String. |
java.io.Writer |
writeTo(java.io.Writer writer)
Write the template document with the set binding applied to the writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private groovy.lang.Script script
private groovy.lang.Binding binding
private java.util.Map map
Constructor Detail |
---|
private GroovyTemplateEngine.SimpleTemplate()
Method Detail |
---|
public void finalize()
finalize
in class java.lang.Object
public void setBinding(java.util.Map map)
groovy.text.Template#setBinding(java.util.Map)
public java.io.Writer writeTo(java.io.Writer writer) throws java.io.IOException
java.io.IOException
Writable.writeTo(java.io.Writer)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
private java.lang.String parse(java.io.Reader reader) throws java.io.IOException
reader
-
java.io.IOException
private void startScript(java.io.StringWriter sw)
private void endScript(java.io.StringWriter sw)
private void groovyExpression(java.io.Reader reader, java.io.StringWriter sw) throws java.io.IOException
reader
- sw
-
java.io.IOException
private void groovySection(java.io.Reader reader, java.io.StringWriter sw) throws java.io.IOException
reader
- sw
-
java.io.IOException
public groovy.lang.Writable make()
make
in interface groovy.text.Template
public groovy.lang.Writable make(java.util.Map map)
make
in interface groovy.text.Template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |