org.crsh.lang.impl.groovy.command
Class GroovyScriptCommand

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Script
          extended by org.crsh.lang.impl.groovy.command.GroovyScriptCommand
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class GroovyScriptCommand
extends groovy.lang.Script


Field Summary
protected  InvocationContext context
          The current context.
protected  RenderPrintWriter out
          The current output.
private  LinkedList<InvocationContext<?>> stack
          .
 
Constructor Summary
protected GroovyScriptCommand()
           
 
Method Summary
 void execute(String s)
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
           
 InvocationContext<?> peekContext()
           
 InvocationContext<?> popContext()
           
 void pushContext(InvocationContext<?> context)
           
 
Methods inherited from class groovy.lang.Script
evaluate, evaluate, getBinding, print, printf, printf, 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
 

Field Detail

stack

private LinkedList<InvocationContext<?>> stack
.


context

protected InvocationContext context
The current context.


out

protected RenderPrintWriter out
The current output.

Constructor Detail

GroovyScriptCommand

protected GroovyScriptCommand()
Method Detail

pushContext

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

popContext

public final InvocationContext<?> popContext()

execute

public final void execute(String s)
                   throws Exception
Throws:
Exception

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.Script

getProperty

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


Copyright © 2015 eXo Platform SAS. All Rights Reserved.