public class ReplaceAction extends Action
| Constructor and Description |
|---|
ReplaceAction(int beginLine,
int beginPosition,
Node oldNode,
Node newNode,
int indentation,
int indentationSize,
List<Comment> comments) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndColumn() |
int |
getEndLine() |
String |
getNewText() |
int |
getOldEndColumn() |
int |
getOldEndLine() |
String |
getOldText() |
String |
getText(String indentation,
char indentationChar)
Returns the new text to insert with the appropriate indentation and comments
|
contains, getBeginColumn, getBeginLine, getType, isEmpty, isPreviousThan, setBeginColumn, setBeginLine, setTypepublic String getText(String indentation, char indentationChar)
indentation - the existing indentation at the file. It never should be null and it is needed for
files that mix tabs and spaces in the same line.indentationChar - the used indentation char (' ', or '\t')public int getEndLine()
getEndLine in class Actionpublic int getOldEndLine()
public int getOldEndColumn()
public int getEndColumn()
getEndColumn in class Actionpublic String getNewText()
public String getOldText()
Copyright © 2018. All rights reserved.