org.crsh.shell.impl
Class GroovyScriptCommand
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.crsh.shell.impl.GroovyScriptCommand
- All Implemented Interfaces:
- groovy.lang.GroovyObject, ShellCommand<java.lang.Void,java.lang.Void>
public abstract class GroovyScriptCommand
- extends groovy.lang.Script
- implements ShellCommand<java.lang.Void,java.lang.Void>
This class provides the base class for Groovy scripts. It should not be used directly as it is rather used
for configuring a Groovy CompilerConfiguration.setScriptBaseClass(String) class.
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class groovy.lang.Script |
evaluate, evaluate, getBinding, invokeMethod, print, println, println, run, run, setBinding, setProperty |
| Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, setMetaClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyScriptCommand
public GroovyScriptCommand()
getProducedType
public java.lang.Class<java.lang.Void> getProducedType()
- Specified by:
getProducedType in interface ShellCommand<java.lang.Void,java.lang.Void>
getConsumedType
public java.lang.Class<java.lang.Void> getConsumedType()
- Specified by:
getConsumedType in interface ShellCommand<java.lang.Void,java.lang.Void>
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty in interface groovy.lang.GroovyObject- Overrides:
getProperty in class groovy.lang.Script
execute
public void execute(CommandContext<java.lang.Void,java.lang.Void> context,
java.lang.String... args)
throws ScriptException
- Specified by:
execute in interface ShellCommand<java.lang.Void,java.lang.Void>
- Throws:
ScriptException
Copyright © 2010 eXo Platform SAS. All Rights Reserved.