|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
appendHistory(Object newHistory)
If history is larger than 0, then it appends newHistory to the history which may override values |
boolean |
decPeekIndex()
Will decrement the peek index which ranges from -historySize to historySize |
Object |
get(int i)
returns if(i>0) the ith command since the shell is active. |
int |
getCount()
Gets the number of items in the history |
Object[] |
getHistory()
returns the history as Object[] |
int |
getHistorySize()
Gets the max items for the history |
Object |
getLast()
Gets the last history value |
boolean |
incPeekIndex()
Will increment the peek index which ranges from -historySize to historySize |
Object |
peek()
Looks at Object get(peekIndex) if peekIndex is 0 returns null |
void |
setHistory(Object[] value)
Set the history to a Object[] |
void |
setHistoryAt(int i,
Object value)
Set the history value at index i |
void |
setHistorySize(int value)
Resizes the history and preserves as many history objects as permitted by the new history size |
| Method Detail |
public void appendHistory(Object newHistory)
newHistory - -
the history object to appendpublic boolean decPeekIndex()
public Object get(int i)
throws ShellHistoryException
i - -
specifies which command to return
ShellHistoryExceptionpublic int getCount()
public Object[] getHistory()
public int getHistorySize()
public Object getLast()
throws ShellHistoryException
ShellHistoryExceptionpublic boolean incPeekIndex()
public Object peek()
public void setHistory(Object[] value)
value -
public void setHistoryAt(int i,
Object value)
throws ShellHistoryException
i - -
index to set the history atvalue - -
value to set
ShellHistoryException - -
if index is out of bounds
public void setHistorySize(int value)
throws ShellHistoryException
value -
ShellHistoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||