public class MemberOrderService
extends java.lang.Object
Constructor and Description |
---|
MemberOrderService() |
Modifier and Type | Method and Description |
---|---|
PsiElement |
getAnchor(PsiElement member,
CommonCodeStyleSettings settings,
PsiElement context)
Tries to find an element at the given context which should be the previous sibling for the given 'member'element according to the
user-defined arrangement rules . |
public PsiElement getAnchor(PsiElement member, CommonCodeStyleSettings settings, PsiElement context)
user-defined arrangement rules
.
E.g. the IDE might generate given 'member' element and wants to know element after which it should be insertedmember
- target member which anchor should be calculatedsettings
- code style settings to usecontext
- given member's contextnull
otherwise