| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private boolean | |
| private String | |
| private CompilerConfiguration | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static GroovyShell | |
| protected GroovyCodeSource | Returns: a new GroovyCodeSource for the given scriptindicates whether the script parameter is a location or content isScriptFile, String the location or context of the script script)Get a new GroovyCodeSource for a script which may be given as a location (isScript is true) or as text (isScript is false). |
| public String | |
| public File | huntForTheScriptFile(String input)
Hunt for the script file by calling searchForGroovyScriptFile(String). |
| public static void | |
| pack-priv static void | |
| pack-priv static void | |
| public static void | |
| public static void | |
| private void | |
| private void | |
| private void | |
| private void | processReader(Script
script to execute. s, BufferedReader input file. reader, PrintWriter output sink. pw)Process a script against a single input file. |
| private void | |
| private boolean | |
| public static File | searchForGroovyScriptFile(String input)
Search for the script file, doesn't bother if it is named precisely. |
| private static void |
| args | back to summary |
|---|---|
| private List<String> args | |
| autoOutput | back to summary |
|---|---|
| private boolean autoOutput | |
| autoSplit | back to summary |
|---|---|
| private boolean autoSplit | |
| backupExtension | back to summary |
|---|---|
| private String backupExtension | |
| conf | back to summary |
|---|---|
| private CompilerConfiguration conf | |
| debug | back to summary |
|---|---|
| private boolean debug | |
| editFiles | back to summary |
|---|---|
| private boolean editFiles | |
| isScriptFile | back to summary |
|---|---|
| private boolean isScriptFile | |
| port | back to summary |
|---|---|
| private int port | |
| processFiles | back to summary |
|---|---|
| private boolean processFiles | |
| processSockets | back to summary |
|---|---|
| private boolean processSockets | |
| script | back to summary |
|---|---|
| private String script | |
| splitPattern | back to summary |
|---|---|
| private String splitPattern | |
| URI_PATTERN | back to summary |
|---|---|
| private static final Pattern URI_PATTERN | |
| GroovyMain | back to summary |
|---|---|
| public GroovyMain() | |
| buildConfigScriptText | back to summary |
|---|---|
| public static String buildConfigScriptText(List<String> transforms) | |
| createConfigScriptsShell | back to summary |
|---|---|
| private static GroovyShell createConfigScriptsShell(CompilerConfiguration conf) | |
| getScriptSource | back to summary |
|---|---|
| protected GroovyCodeSource getScriptSource(boolean isScriptFile, String script) throws IOException, URISyntaxException Get a new GroovyCodeSource for a script which may be given as a location (isScript is true) or as text (isScript is false).
| |
| getText | back to summary |
|---|---|
| public String getText(String uriOrFilename) throws IOException
Deprecated
Get the text of the Groovy script at the given location.
If the location is a file path and it does not exist as given,
then
| |
| huntForTheScriptFile | back to summary |
|---|---|
| public File huntForTheScriptFile(String input) Hunt for the script file by calling searchForGroovyScriptFile(String). | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Main CLI interface.
| |
| processArgs | back to summary |
|---|---|
| pack-priv static void processArgs(String[] args, final PrintStream out)
Deprecated
| |
| processArgs | back to summary |
|---|---|
| pack-priv static void processArgs(String[] args, final PrintStream out, final PrintStream err) | |
| processConfigScripts | back to summary |
|---|---|
| public static void processConfigScripts(List<String> scripts, CompilerConfiguration conf) throws IOException | |
| processConfigScriptText | back to summary |
|---|---|
| public static void processConfigScriptText(String scriptText, CompilerConfiguration conf) | |
| processFile | back to summary |
|---|---|
| private void processFile(Script s, File file) throws IOException Process a single input file. | |
| processFiles | back to summary |
|---|---|
| private void processFiles() throws CompilationFailedException, IOException, URISyntaxException Process the input files. | |
| processOnce | back to summary |
|---|---|
| private void processOnce() throws CompilationFailedException, IOException, URISyntaxException Process the standard, single script with args. | |
| processReader | back to summary |
|---|---|
| private void processReader(Script s, BufferedReader reader, PrintWriter pw) throws IOException Process a script against a single input file.
| |
| processSockets | back to summary |
|---|---|
| private void processSockets() throws CompilationFailedException, IOException, URISyntaxException Process Sockets. | |
| run | back to summary |
|---|---|
| private boolean run() Run the script. | |
| searchForGroovyScriptFile | back to summary |
|---|---|
| public static File searchForGroovyScriptFile(String input) Search for the script file, doesn't bother if it is named precisely. Tries in this order: - actual supplied name - name.groovy - name.gvy - name.gy - name.gsh
| |
| setupContextClassLoader | back to summary |
|---|---|
| private static void setupContextClassLoader(GroovyShell shell) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | |
| private String | |
| private boolean | |
| private String | |
| private boolean | |
| private List | |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private boolean | |
| private String | |
| private String | |
| private String | |
| private Map | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| pack-priv boolean | process(CommandLine
the parsed command line. Used when the user input was invalid. parser)Process the users request. |
| arguments | back to summary |
|---|---|
| pack-priv List<String> arguments
| |
| classpath | back to summary |
|---|---|
private String classpath
| |
| compileStatic | back to summary |
|---|---|
private boolean compileStatic
| |
| configscript | back to summary |
|---|---|
private String configscript
| |