public final class KillRing
extends java.lang.Object
| Constructor | Description |
|---|---|
KillRing() |
Creates a new kill ring of the default size.
|
KillRing(int size) |
Creates a new kill ring of the given size.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.String str) |
Adds the string to the kill-ring.
|
void |
addBackwards(java.lang.String str) |
Adds the string to the kill-ring product of killing
backwards.
|
boolean |
lastYank() |
Returns
true if the last command was a yank. |
void |
resetLastKill() |
Resets the last-kill state.
|
void |
resetLastYank() |
Resets the last-yank state.
|
java.lang.String |
yank() |
Yanks a previously killed text.
|
java.lang.String |
yankPop() |
Moves the pointer to the current slot back and returns the text
in that position.
|
public KillRing(int size)
public KillRing()
DEFAULT_SIZE.public void resetLastYank()
public void resetLastKill()
public boolean lastYank()
true if the last command was a yank.public void add(java.lang.String str)
public void addBackwards(java.lang.String str)
public java.lang.String yank()
null if the
ring is empty.public java.lang.String yankPop()