org.crsh.command
Class ClassCommand

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by org.crsh.command.ClassCommand
All Implemented Interfaces:
groovy.lang.GroovyObject, ShellCommand
Direct Known Subclasses:
AnyArgumentClassCommand

public abstract class ClassCommand
extends groovy.lang.GroovyObjectSupport
implements ShellCommand

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ClassCommand()
           
 
Method Summary
protected abstract  java.lang.Object execute()
           
 java.lang.Object execute(CommandContext context, java.lang.String... args)
           
 java.lang.Object getProperty(java.lang.String property)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
protected  java.lang.String readLine(java.lang.String msg)
           
protected  java.lang.String readLine(java.lang.String msg, boolean echo)
           
 void setProperty(java.lang.String property, java.lang.Object newValue)
           
 
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

ClassCommand

public ClassCommand()
Method Detail

invokeMethod

public final java.lang.Object invokeMethod(java.lang.String name,
                                           java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class groovy.lang.GroovyObjectSupport

getProperty

public final java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class groovy.lang.GroovyObjectSupport

setProperty

public final void setProperty(java.lang.String property,
                              java.lang.Object newValue)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class groovy.lang.GroovyObjectSupport

readLine

protected final java.lang.String readLine(java.lang.String msg)

readLine

protected final java.lang.String readLine(java.lang.String msg,
                                          boolean echo)

execute

public final java.lang.Object execute(CommandContext context,
                                      java.lang.String... args)
                               throws ScriptException
Specified by:
execute in interface ShellCommand
Throws:
ScriptException

execute

protected abstract java.lang.Object execute()
                                     throws ScriptException
Throws:
ScriptException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.