org.crsh.command
Class AbstractCommand

java.lang.Object
  extended by org.crsh.command.AbstractCommand
Direct Known Subclasses:
BaseCommand

public abstract class AbstractCommand
extends Object


Field Summary
protected  RuntimeContext context
          The current context.
protected  RenderPrintWriter out
          The current output.
private  LinkedList<InvocationContext<?>> stack
          .
 
Constructor Summary
protected AbstractCommand()
           
 
Method Summary
 InvocationContext<?> peekContext()
           
 InvocationContext<?> popContext()
           
 void pushContext(InvocationContext<?> context)
           
 
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

AbstractCommand

protected AbstractCommand()
Method Detail

pushContext

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

popContext

public final InvocationContext<?> popContext()

peekContext

public final InvocationContext<?> peekContext()


Copyright © 2013 eXo Platform SAS. All Rights Reserved.