Package org.nuiton.jaxx.compiler.script
Class ScriptManager
- java.lang.Object
-
- org.nuiton.jaxx.compiler.script.ScriptManager
-
public class ScriptManager extends Object
-
-
Constructor Summary
Constructors Constructor Description ScriptManager(JAXXCompiler compiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckParse(String script)StringpreprocessScript(String script)voidregisterScript(String script)StringtrimScript(String script)Strips unnecessary curly braces from around the script, generating a warning if they are found.StringtrimScript(String script, boolean warn)Strips unnecessary curly braces from around the script, generating a warning if flagwarnis on and they are found.
-
-
-
Constructor Detail
-
ScriptManager
public ScriptManager(JAXXCompiler compiler)
-
-
Method Detail
-
trimScript
public String trimScript(String script)
Strips unnecessary curly braces from around the script, generating a warning if they are found.- Parameters:
script- script to trim- Returns:
- the trimmed script
-
trimScript
public String trimScript(String script, boolean warn)
Strips unnecessary curly braces from around the script, generating a warning if flagwarnis on and they are found.- Parameters:
script- script to trimwarn- flag to warn if curly braces are found- Returns:
- the trimmed script
-
checkParse
public void checkParse(String script) throws CompilerException
- Throws:
CompilerException
-
preprocessScript
public String preprocessScript(String script) throws CompilerException
- Throws:
CompilerException
-
registerScript
public void registerScript(String script) throws CompilerException
- Throws:
CompilerException
-
-