|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.guix.tags.ScriptHandler
public class ScriptHandler
Handles the script tag and its contents.
| Nested Class Summary | |
|---|---|
static class |
ScriptHandler.ScriptPart
The different parts of the script |
| Constructor Summary | |
|---|---|
ScriptHandler()
|
|
| Method Summary | |
|---|---|
java.lang.String |
compileScript(org.xmlpull.v1.XmlPullParser xpp,
java.io.File scriptFile)
Parse the script tag. |
static java.util.Map<ScriptHandler.ScriptPart,java.lang.Object> |
decomposeScript(java.lang.String script)
Decompose the script into the different parts |
java.lang.String |
loadScriptFile(java.io.File scriptFile)
Loads the content of a script file |
static java.lang.String |
postProcessInitializers(java.lang.String initializers,
JavaField[] fields)
|
static java.lang.String |
postProcessMethodBody(JavaMethod method,
JavaField[] fields)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptHandler()
| Method Detail |
|---|
public java.lang.String loadScriptFile(java.io.File scriptFile)
throws java.io.IOException
scriptFile - the file to load
java.io.IOException - if an error occurs while reading scriptFile
public java.lang.String compileScript(org.xmlpull.v1.XmlPullParser xpp,
java.io.File scriptFile)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
script tag.
xpp - the parser referencing the style tagscriptFile - the file containing the code to compile
source attribute
or the script between the script tags
java.io.IOException
org.xmlpull.v1.XmlPullParserExceptionpublic static java.util.Map<ScriptHandler.ScriptPart,java.lang.Object> decomposeScript(java.lang.String script)
script - the script to decompose
public static java.lang.String postProcessMethodBody(JavaMethod method,
JavaField[] fields)
public static java.lang.String postProcessInitializers(java.lang.String initializers,
JavaField[] fields)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||