public class JavadocHelper
extends java.lang.Object
single-point-of-usage field
.Modifier and Type | Class and Description |
---|---|
static class |
JavadocHelper.JavadocParameterInfo
Encapsulates information about source code line that holds javadoc parameter.
|
Constructor and Description |
---|
JavadocHelper() |
Modifier and Type | Method and Description |
---|---|
LogicalPosition |
calculateDescriptionStartPosition(PsiFile psiFile,
java.util.Collection<? extends JavadocHelper.JavadocParameterInfo> data,
JavadocHelper.JavadocParameterInfo anchor)
Calculates desired position of target javadoc parameter's description start.
|
static JavadocHelper |
getInstance() |
void |
navigate(LogicalPosition position,
Editor editor,
Project project)
Tries to navigate caret at the given editor to the target position inserting missing white spaces if necessary.
|
Pair<JavadocHelper.JavadocParameterInfo,java.util.List<JavadocHelper.JavadocParameterInfo>> |
parse(PsiFile psiFile,
Editor editor,
int offset)
Returns information about all lines that contain javadoc parameters and are adjacent to the one that holds given offset.
|
public static JavadocHelper getInstance()
public void navigate(LogicalPosition position, Editor editor, Project project)
position
- target caret positioneditor
- target editorproject
- target projectpublic LogicalPosition calculateDescriptionStartPosition(PsiFile psiFile, java.util.Collection<? extends JavadocHelper.JavadocParameterInfo> data, JavadocHelper.JavadocParameterInfo anchor)
psiFile
- PSI holderdata
- parsed adjacent javadoc parametersanchor
- descriptor for the target parameterpublic Pair<JavadocHelper.JavadocParameterInfo,java.util.List<JavadocHelper.JavadocParameterInfo>> parse(PsiFile psiFile, Editor editor, int offset)
psiFile
- PSI holder for the document exposed the given editoreditor
- target editoroffset
- target offset that identifies anchor line to check