Package org.jline.builtins
Class Nano.Buffer
- java.lang.Object
-
- org.jline.builtins.Nano.Buffer
-
- Enclosing class:
- Nano
protected class Nano.Buffer extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Buffer(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
backspace(int count)
void
beginningOfLine()
void
delete(int count)
void
endOfLine()
void
firstLine()
java.nio.charset.Charset
getCharset()
int
getColumn()
int
getDisplayedCursor()
java.lang.String
getFile()
int
getFirstColumnToDisplay()
int
getFirstLineToDisplay()
Nano.WriteFormat
getFormat()
int
getLine()
java.util.List<java.lang.String>
getLines()
int
getOffsetInLine()
int
getOffsetInLineToDisplay()
SyntaxHighlighter
getSyntaxHighlighter()
void
gotoLine(int x, int y)
protected int[]
highlightEnd()
protected int[]
highlightStart()
void
insert(java.lang.String insert)
boolean
isBreakable(char ch)
boolean
isDirty()
void
lastLine()
void
matching()
void
moveDisplayDown(int lines)
void
moveDisplayUp(int lines)
void
moveDown(int lines)
boolean
moveLeft(int chars)
boolean
moveRight(int chars)
boolean
moveRight(int chars, boolean fromBeginning)
void
moveTo(int x, int y)
void
moveToChar(int pos)
void
moveToChar(int pos, Nano.CursorMovement move)
void
moveUp(int lines)
void
nextPage()
void
nextWord()
void
open()
void
open(java.io.InputStream is)
void
prevPage()
void
prevWord()
void
read(java.io.InputStream fis)
void
scrollDown(int lines)
void
scrollUp(int lines)
void
setDirty(boolean dirty)
int
width()
-
-
-
Method Detail
-
setDirty
public void setDirty(boolean dirty)
-
getFile
public java.lang.String getFile()
-
getLines
public java.util.List<java.lang.String> getLines()
-
getFirstLineToDisplay
public int getFirstLineToDisplay()
-
getFirstColumnToDisplay
public int getFirstColumnToDisplay()
-
getOffsetInLineToDisplay
public int getOffsetInLineToDisplay()
-
getLine
public int getLine()
-
getCharset
public java.nio.charset.Charset getCharset()
-
getFormat
public Nano.WriteFormat getFormat()
-
isDirty
public boolean isDirty()
-
getSyntaxHighlighter
public SyntaxHighlighter getSyntaxHighlighter()
-
getOffsetInLine
public int getOffsetInLine()
-
getColumn
public int getColumn()
-
open
public void open() throws java.io.IOException
- Throws:
java.io.IOException
-
open
public void open(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public void read(java.io.InputStream fis) throws java.io.IOException
- Throws:
java.io.IOException
-
insert
public void insert(java.lang.String insert)
-
isBreakable
public boolean isBreakable(char ch)
-
moveToChar
public void moveToChar(int pos)
-
moveToChar
public void moveToChar(int pos, Nano.CursorMovement move)
-
delete
public void delete(int count)
-
backspace
public boolean backspace(int count)
-
moveLeft
public boolean moveLeft(int chars)
-
moveRight
public boolean moveRight(int chars)
-
width
public int width()
-
moveRight
public boolean moveRight(int chars, boolean fromBeginning)
-
moveDown
public void moveDown(int lines)
-
moveUp
public void moveUp(int lines)
-
moveDisplayDown
public void moveDisplayDown(int lines)
-
moveDisplayUp
public void moveDisplayUp(int lines)
-
moveTo
public void moveTo(int x, int y)
-
gotoLine
public void gotoLine(int x, int y)
-
getDisplayedCursor
public int getDisplayedCursor()
-
prevWord
public void prevWord()
-
nextWord
public void nextWord()
-
beginningOfLine
public void beginningOfLine()
-
endOfLine
public void endOfLine()
-
prevPage
public void prevPage()
-
nextPage
public void nextPage()
-
scrollUp
public void scrollUp(int lines)
-
scrollDown
public void scrollDown(int lines)
-
firstLine
public void firstLine()
-
lastLine
public void lastLine()
-
highlightStart
protected int[] highlightStart()
-
highlightEnd
protected int[] highlightEnd()
-
matching
public void matching()
-
-