org.crsh.command
Class GroovyCommand

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

public abstract class GroovyCommand
extends groovy.lang.GroovyObjectSupport


Field Summary
protected  RuntimeContext context
          The current context.
protected  RenderPrintWriter out
          The current output.
private  LinkedList<InvocationContext<?>> stack
          .
 
Constructor Summary
protected GroovyCommand()
           
 
Method Summary
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 InvocationContext<?> peekContext()
           
 InvocationContext<?> popContext()
           
 void pushContext(InvocationContext<?> context)
           
 void setProperty(String property, 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
 

Field Detail

stack

private LinkedList<InvocationContext<?>> stack
.


context

protected RuntimeContext context
The current context.


out

protected RenderPrintWriter out
The current output.

Constructor Detail

GroovyCommand

protected GroovyCommand()
Method Detail

pushContext

public final void pushContext(InvocationContext<?> context)
                       throws NullPointerException
Throws:
NullPointerException

popContext

public final InvocationContext<?> popContext()

peekContext

public final InvocationContext<?> peekContext()

invokeMethod

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

getProperty

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

setProperty

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


Copyright © 2014 eXo Platform SAS. All Rights Reserved.