org.crsh.lang.impl.groovy.command
Class GroovyScriptCommand
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.crsh.lang.impl.groovy.command.GroovyScriptCommand
- All Implemented Interfaces:
- groovy.lang.GroovyObject
-
public abstract class GroovyScriptCommand
- extends groovy.lang.Script
-
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 |
stack
private LinkedList<InvocationContext<?>> stack
-
.
context
protected InvocationContext context
-
The current context.
out
protected RenderPrintWriter out
-
The current output.
GroovyScriptCommand
protected GroovyScriptCommand()
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.