|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.pages.GroovyPageCompiler
class GroovyPageCompiler extends java.lang.Object
Used to compile GSP files into a specified target directory.
Property Summary | |
---|---|
groovy.lang.GroovyClassLoader |
classLoader
|
org.codehaus.groovy.control.CompilerConfiguration |
compilerConfig
|
java.lang.String |
encoding
|
java.io.File |
generatedGroovyPagesDirectory
|
GroovyPageInjectionOperation |
operation
|
java.lang.String |
packagePrefix
|
java.util.List |
srcFiles
|
java.io.File |
targetDir
|
java.lang.String |
viewPrefix
|
java.io.File |
viewsDir
|
Method Summary | |
---|---|
java.util.Map
|
compile()
Compiles the given GSP pages and returns a Map of URI to classname mappings |
protected void
|
compileGSP(java.io.File viewsDir, java.io.File gspfile, java.lang.String viewPrefix, java.lang.String packagePrefix)
Compiles an individual GSP file |
protected java.lang.Object
|
generateJavaName(java.lang.String str)
|
protected java.lang.String
|
relativePath(java.io.File relbase, java.io.File file)
|
void
|
setCompilerConfig(org.codehaus.groovy.control.CompilerConfiguration c)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
groovy.lang.GroovyClassLoader classLoader
org.codehaus.groovy.control.CompilerConfiguration compilerConfig
java.lang.String encoding
java.io.File generatedGroovyPagesDirectory
GroovyPageInjectionOperation operation
java.lang.String packagePrefix
java.util.List srcFiles
java.io.File targetDir
java.lang.String viewPrefix
java.io.File viewsDir
Method Detail |
---|
java.util.Map compile()
protected void compileGSP(java.io.File viewsDir, java.io.File gspfile, java.lang.String viewPrefix, java.lang.String packagePrefix)
viewsDir
- The base directory that contains the GSP viewgspfile
- The actual GSP file referenceviewPrefix
- The prefix to use for the path to the viewpackagePrefix
- The package prefix to use which allows scoping for different applications and plugins
protected java.lang.Object generateJavaName(java.lang.String str)
protected java.lang.String relativePath(java.io.File relbase, java.io.File file)
void setCompilerConfig(org.codehaus.groovy.control.CompilerConfiguration c)
Groovy Documentation