org.crsh.console
Class Mode.Digit

java.lang.Object
  extended by org.crsh.console.EditorAction
      extended by org.crsh.console.Mode
          extended by org.crsh.console.Mode.Digit
Enclosing class:
Mode

public static class Mode.Digit
extends Mode


Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.console.Mode
Mode.ChangeChar, Mode.Digit
 
Nested classes/interfaces inherited from class org.crsh.console.EditorAction
EditorAction.ChangeChars, EditorAction.Copy, EditorAction.DeleteNextChars, EditorAction.History, EditorAction.InsertKey, EditorAction.MoveNextWord, EditorAction.MovePrevWord
 
Field Summary
(package private)  int count
          .
(package private)  Character to
          .
 
Fields inherited from class org.crsh.console.Mode
CHANGE_TO, DELETE_TO, EMACS, VI_INSERT, VI_MOVE, YANK_TO
 
Fields inherited from class org.crsh.console.EditorAction
CHANGE_CASE, CLS, COMPLETE, COPY, COPY_BEGINNING_OF_LINE, COPY_END_OF_LINE, COPY_NEXT_WORD, COPY_PREV_WORD, DELETE_BEGINNING, DELETE_END, DELETE_LINE, DELETE_NEXT_CHAR, DELETE_NEXT_WORD, DELETE_PREV_CHAR, DELETE_PREV_WORD, DELETE_UNTIL_NEXT_WORD, ENTER, EOF_MAYBE, HISTORY_FIRST, HISTORY_LAST, HISTORY_NEXT, HISTORY_PREV, INSERT_COMMENT, INTERRUPT, LEFT, MOVE_BEGINNING, MOVE_END, MOVE_NEXT_WORD_AFTER_END, MOVE_NEXT_WORD_AT_BEGINNING, MOVE_NEXT_WORD_BEFORE_END, MOVE_PREV_WORD_AT_BEGINNING, MOVE_PREV_WORD_AT_END, PASTE_AFTER, RIGHT, TRANSPOSE_CHARS, UNIX_LINE_DISCARD
 
Constructor Summary
Mode.Digit()
           
Mode.Digit(int count)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getCount()
           
 String getKeyMap()
           
 Character getTo()
           
 EditorAction on(KeyStroke keyStroke)
          Transform a key stroke into a editor action.
 String toString()
           
 
Methods inherited from class org.crsh.console.Mode
perform
 
Methods inherited from class org.crsh.console.EditorAction
execute, repeat, then
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

int count
.


to

Character to
.

Constructor Detail

Mode.Digit

public Mode.Digit(int count)

Mode.Digit

public Mode.Digit()
Method Detail

getCount

public int getCount()

getTo

public Character getTo()

getKeyMap

public String getKeyMap()
Specified by:
getKeyMap in class Mode

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Specified by:
toString in class Mode

on

public EditorAction on(KeyStroke keyStroke)
Description copied from class: Mode
Transform a key stroke into a editor action. If no action must be taken, null should be returned.

Overrides:
on in class Mode
Parameters:
keyStroke - the key stroke
Returns:
the editor action


Copyright © 2015 eXo Platform SAS. All Rights Reserved.