|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.command.InnerInvocationContext<P>
class InnerInvocationContext<P>
| Field Summary | |
|---|---|
(package private) InvocationContext<?> |
outter
. |
(package private) Pipe<Object> |
producer
. |
private RenderPrintWriter |
writer
. |
| Constructor Summary | |
|---|---|
InnerInvocationContext(InvocationContext<?> outter,
Pipe<Object> producer)
|
|
| Method Summary | |
|---|---|
void |
flush()
|
Map<String,Object> |
getAttributes()
Returns the current shell attributes. |
int |
getHeight()
Returns the term height in chars. |
String |
getProperty(String propertyName)
Returns a generic property, usually this property is resolved by the shell client. |
Map<String,Object> |
getSession()
Returns the current shell session. |
int |
getWidth()
Returns the term width in chars. |
RenderPrintWriter |
getWriter()
Returns the writer for the output. |
void |
provide(P element)
Provide an element. |
String |
readLine(String msg,
boolean echo)
Display a message and read a line on the console. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final InvocationContext<?> outter
final Pipe<Object> producer
private RenderPrintWriter writer
| Constructor Detail |
|---|
InnerInvocationContext(InvocationContext<?> outter,
Pipe<Object> producer)
| Method Detail |
|---|
public int getWidth()
InteractionContext
getWidth in interface InteractionContext<P>public int getHeight()
InteractionContext
getHeight in interface InteractionContext<P>public String getProperty(String propertyName)
InteractionContext
getProperty in interface InteractionContext<P>propertyName - the property name
public String readLine(String msg,
boolean echo)
InteractionContext
readLine in interface InteractionContext<P>msg - the message to display before reading a lineecho - wether or not the line read should be echoed when typing
public RenderPrintWriter getWriter()
InvocationContext
getWriter in interface InvocationContext<P>
public void provide(P element)
throws IOException
Pipe
provide in interface Pipe<P>element - the provided element
IOException
public void flush()
throws IOException
flush in interface FlushableIOExceptionpublic Map<String,Object> getSession()
CommandContext
getSession in interface CommandContextpublic Map<String,Object> getAttributes()
CommandContext
getAttributes in interface CommandContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||