public class ParameterInfoUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PARAMETER_CLOSE_CHARS |
Constructor and Description |
---|
ParameterInfoUtils() |
Modifier and Type | Method and Description |
---|---|
static <E extends PsiElement> |
findArgumentList(PsiFile file,
int offset,
int lbraceOffset,
ParameterInfoHandlerWithTabActionSupport findArgumentListHelper) |
static <E extends PsiElement> |
findArgumentList(PsiFile file,
int offset,
int lbraceOffset,
ParameterInfoHandlerWithTabActionSupport findArgumentListHelper,
boolean allowOuter) |
static <T extends PsiElement> |
findParentOfType(PsiFile file,
int offset,
java.lang.Class<T> parentClass) |
static <T extends PsiElement> |
findParentOfTypeWithStopElements(PsiFile file,
int offset,
java.lang.Class<T> parentClass,
java.lang.Class<? extends PsiElement>... stopAt) |
static int |
getCurrentParameterIndex(ASTNode argList,
int offset,
IElementType delimiterType) |
static <V> int |
getCurrentParameterIndex(SyntaxTraverser<V> s,
int offset,
IElementType delimiterType) |
public static final java.lang.String DEFAULT_PARAMETER_CLOSE_CHARS
public static <T extends PsiElement> T findParentOfType(PsiFile file, int offset, java.lang.Class<T> parentClass)
@SafeVarargs public static <T extends PsiElement> T findParentOfTypeWithStopElements(PsiFile file, int offset, java.lang.Class<T> parentClass, java.lang.Class<? extends PsiElement>... stopAt)
public static int getCurrentParameterIndex(ASTNode argList, int offset, IElementType delimiterType)
public static <V> int getCurrentParameterIndex(SyntaxTraverser<V> s, int offset, IElementType delimiterType)
public static <E extends PsiElement> E findArgumentList(PsiFile file, int offset, int lbraceOffset, ParameterInfoHandlerWithTabActionSupport findArgumentListHelper)
public static <E extends PsiElement> E findArgumentList(PsiFile file, int offset, int lbraceOffset, ParameterInfoHandlerWithTabActionSupport findArgumentListHelper, boolean allowOuter)
allowOuter
- whether it's OK to return enclosing argument list (starting at lbraceOffset
) when there exists an inner
argument list at a given offset