@groovy.transform.CompileStatic abstract class AbstractWritableScript extends groovy.lang.Script implements GrailsView, WritableScript
A script that is writable
Modifiers | Name | Description |
---|---|---|
protected static org.slf4j.Logger |
log |
A logger that can be used within views |
private java.util.Map<java.lang.String, java.lang.Class> |
modelTypes |
|
private java.io.Writer |
out |
|
private java.io.File |
sourceFile |
The source file |
Type | Name and description |
---|---|
java.util.Map<java.lang.String, java.lang.Class> |
modelTypes |
java.io.Writer |
out |
java.io.File |
sourceFile The source file |
Constructor and description |
---|
AbstractWritableScript
() |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.io.Writer |
doWrite(java.io.Writer writer) Subclasses should implement to perform the write |
|
java.util.Map<java.lang.String, java.lang.Class> |
getModelTypes() |
|
java.io.Writer |
getOut()
|
|
void |
setModelTypes(java.util.Map<java.lang.String, java.lang.Class> modelTypes) |
|
final java.io.Writer |
writeTo(java.io.Writer out) |
Methods inherited from class | Name |
---|---|
class groovy.lang.Script |
groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#println(), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#run(), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
A logger that can be used within views
The source file
The source file
Subclasses should implement to perform the write
writer
- The writer
Groovy Documentation