public class GrouperGroovysh
extends org.codehaus.groovy.tools.shell.Groovysh
Modifier and Type | Class and Description |
---|---|
static class |
GrouperGroovysh.GrouperGroovyResult |
Constructor and Description |
---|
GrouperGroovysh(org.codehaus.groovy.tools.shell.IO io,
org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration,
boolean exitOnError) |
Modifier and Type | Method and Description |
---|---|
static void |
addImports(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
dont call this, too much of a performance penalty
|
protected void |
displayError(Throwable cause) |
Throwable |
getThrowable() |
static void |
runScript(GrouperGroovyInput grouperGroovyInput,
GrouperGroovysh.GrouperGroovyResult grouperGroovyResult)
run a script and return the result.
|
static GrouperGroovysh.GrouperGroovyResult |
runScript(String script)
run a script and return the result.
|
static GrouperGroovysh.GrouperGroovyResult |
runScript(String script,
boolean lightWeight)
run a script and return the result.
|
static GrouperGroovysh.GrouperGroovyResult |
runScript(String script,
boolean lightWeight,
boolean sendErrToOut)
Deprecated.
since sendErrToOut doesnt make sense
|
static boolean |
scriptLineExit(int lineNumber,
String it)
if running through a script, need to exit script
|
static boolean |
scriptLineIgnore(int lineNumber,
String it)
if running through a script, need to ignore line
|
static GrouperSession |
startRootSessionIfNoSessionRunning()
see if there's a grouper session running; return if it's there otherwise start root session and return that.
|
displayBuffer, displayWelcomeBanner, execute, executeCommand, formatLineNumber, getBuffers, getDefaultErrorHook, getDefaultResultHook, getErrorHook, getEvictedLine, getHistory, getHistoryFull, getImports, getImportStatements, getIndentPrefix, getIndentSize, getInterp, getPackageHelper, getParser, getPreference, getResultHook, getRunner, getUserStateDirectory, isHistoryFull, isTypeOrMethodDeclaration, loadUserScript, maybeRecordError, maybeRecordInput, maybeRecordResult, renderPrompt, run, run, setErrorHook, setEvictedLine, setHistory, setHistoryFull, setIndentSize, setPackageHelper, setResultHook, setRunner
findCommand, findCommand, getIo, getRegistry, isExecutable, leftShift, leftShift, register
public GrouperGroovysh(org.codehaus.groovy.tools.shell.IO io, org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration, boolean exitOnError)
io
- compilerConfiguration
- exitOnError
- public static boolean scriptLineExit(int lineNumber, String it)
lineNumber
- line
- public static boolean scriptLineIgnore(int lineNumber, String it)
lineNumber
- line
- public static GrouperGroovysh.GrouperGroovyResult runScript(String script)
script
- public static GrouperGroovysh.GrouperGroovyResult runScript(String script, boolean lightWeight)
script
- lightWeight
- will use an abbreviated groovysh.profile for faster speed. built in commands
arent there and imports largely arent therepublic static GrouperGroovysh.GrouperGroovyResult runScript(String script, boolean lightWeight, boolean sendErrToOut)
script
- lightWeight
- will use an abbreviated groovysh.profile for faster speed. built in commands
arent there and imports largely arent therepublic static void runScript(GrouperGroovyInput grouperGroovyInput, GrouperGroovysh.GrouperGroovyResult grouperGroovyResult)
script
- lightWeight
- will use an abbreviated groovysh.profile for faster speed. built in commands
arent there and imports largely arent therepublic static void addImports(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
public Throwable getThrowable()
protected void displayError(Throwable cause)
public static GrouperSession startRootSessionIfNoSessionRunning()
Copyright © 2016 Internet2. All rights reserved.