public class NestedIfJoinLinesHandler extends java.lang.Object implements JoinLinesHandlerDelegate
if(a) {
if(b) {
...
}
}
=>
if(a && b) {
...
}
CANNOT_JOIN, EP_NAME| Constructor and Description |
|---|
NestedIfJoinLinesHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
tryJoinLines(Document document,
PsiFile psiFile,
int start,
int end)
Tries to join lines at the specified position of the specified file.
|
public int tryJoinLines(Document document, PsiFile psiFile, int start, int end)
JoinLinesHandlerDelegatetryJoinLines in interface JoinLinesHandlerDelegatedocument - where the lines arepsiFile - where the lines arestart - offset where the whitespace between lines startsend - offset where the whitespace between lines endsJoinLinesHandlerDelegate.CANNOT_JOIN if this handler was not able
to perform the operation.