org.crsh.lang.groovy.command
Class GroovyCommand

java.lang.Object
  extended by org.crsh.command.AbstractCommand
      extended by org.crsh.command.BaseCommand
          extended by org.crsh.lang.groovy.command.GroovyCommand
All Implemented Interfaces:
groovy.lang.GroovyObject, ShellCommand
Direct Known Subclasses:
CRaSHCommand

public abstract class GroovyCommand
extends BaseCommand
implements groovy.lang.GroovyObject


Field Summary
private  groovy.lang.MetaClass metaClass
           
 
Fields inherited from class org.crsh.command.BaseCommand
unmatched
 
Fields inherited from class org.crsh.command.AbstractCommand
context, out
 
Constructor Summary
protected GroovyCommand()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String property, Object newValue)
           
 ScriptException toScript(Throwable cause)
           
static ScriptException unwrap(Throwable cause)
           
 
Methods inherited from class org.crsh.command.BaseCommand
complete, describe, execute, getDescriptor, getUnmatched, readLine, readLine, resolveInvoker, resolveInvoker, resolveInvoker
 
Methods inherited from class org.crsh.command.AbstractCommand
peekContext, popContext, pushContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaClass

private transient groovy.lang.MetaClass metaClass
Constructor Detail

GroovyCommand

protected GroovyCommand()
                 throws IntrospectionException
Throws:
IntrospectionException
Method Detail

toScript

public ScriptException toScript(Throwable cause)
Overrides:
toScript in class BaseCommand

unwrap

public static ScriptException unwrap(Throwable cause)

invokeMethod

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

getProperty

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

setProperty

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

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject


Copyright © 2013 eXo Platform SAS. All Rights Reserved.