org.crsh.shell
Class ScriptCommand

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Script
          extended by org.crsh.shell.ScriptCommand
All Implemented Interfaces:
groovy.lang.GroovyObject, ShellCommand

public abstract class ScriptCommand
extends groovy.lang.Script
implements ShellCommand

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ScriptCommand()
           
 
Method Summary
 java.lang.Object execute(CommandContext context, java.lang.String... args)
           
 java.lang.Object getProperty(java.lang.String property)
           
 
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
 

Constructor Detail

ScriptCommand

public ScriptCommand()
Method Detail

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 java.lang.Object execute(CommandContext context,
                                java.lang.String... args)
                         throws ScriptException
Specified by:
execute in interface ShellCommand
Throws:
ScriptException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.