|
27 | 27 | * @see PsiModifierListOwner#getModifierList() |
28 | 28 | */ |
29 | 29 | public interface PsiModifierList extends PsiElement, PsiAnnotationOwner { |
30 | | - /** |
31 | | - * Checks if the modifier list has the specified modifier set either by an explicit keyword |
32 | | - * or implicitly (for example, interface methods are implicitly public). |
33 | | - * |
34 | | - * @param name the name of the modifier to check. |
35 | | - * @return true if the list has the modifier, false otherwise |
36 | | - * @see #hasExplicitModifier(String) |
37 | | - */ |
38 | | - boolean hasModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name); |
| 30 | + /** |
| 31 | + * Checks if the modifier list has the specified modifier set either by an explicit keyword |
| 32 | + * or implicitly (for example, interface methods are implicitly public). |
| 33 | + * |
| 34 | + * @param name the name of the modifier to check. |
| 35 | + * @return true if the list has the modifier, false otherwise |
| 36 | + * @see #hasExplicitModifier(String) |
| 37 | + */ |
| 38 | + boolean hasModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name); |
39 | 39 |
|
40 | | - /** |
41 | | - * Checks if the modifier list has the specified modifier set by an explicit keyword. |
42 | | - * |
43 | | - * @param name the name of the modifier to check. |
44 | | - * @return true if the list has the modifier, false otherwise |
45 | | - * @see #hasModifierProperty(String) |
46 | | - */ |
47 | | - boolean hasExplicitModifier(@PsiModifier.ModifierConstant @Nonnull @NonNls String name); |
| 40 | + /** |
| 41 | + * Checks if the modifier list has the specified modifier set by an explicit keyword. |
| 42 | + * |
| 43 | + * @param name the name of the modifier to check. |
| 44 | + * @return true if the list has the modifier, false otherwise |
| 45 | + * @see #hasModifierProperty(String) |
| 46 | + */ |
| 47 | + boolean hasExplicitModifier(@PsiModifier.ModifierConstant @Nonnull @NonNls String name); |
48 | 48 |
|
49 | | - /** |
50 | | - * Adds or removes the specified modifier to the modifier list. |
51 | | - * |
52 | | - * @param name the name of the modifier to add or remove. |
53 | | - * @param value true if the modifier should be added, false if it should be removed. |
54 | | - * @throws IncorrectOperationException if the modification fails for some reason. |
55 | | - */ |
56 | | - void setModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name, boolean value) throws IncorrectOperationException; |
57 | | - |
58 | | - /** |
59 | | - * Checks if it is possible to add or remove the specified modifier to the modifier list, |
60 | | - * and throws an exception if the operation is not possible. Does not actually modify |
61 | | - * anything. |
62 | | - * |
63 | | - * @param name the name of the modifier to check the add or remove possibility for. |
64 | | - * @param value true if the modifier should be added, false if it should be removed. |
65 | | - * @throws IncorrectOperationException if the modification fails for some reason. |
66 | | - */ |
67 | | - void checkSetModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name, boolean value) throws IncorrectOperationException; |
| 49 | + /** |
| 50 | + * Adds or removes the specified modifier to the modifier list. |
| 51 | + * |
| 52 | + * @param name the name of the modifier to add or remove. |
| 53 | + * @param value true if the modifier should be added, false if it should be removed. |
| 54 | + * @throws IncorrectOperationException if the modification fails for some reason. |
| 55 | + */ |
| 56 | + void setModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name, boolean value) throws IncorrectOperationException; |
68 | 57 |
|
| 58 | + /** |
| 59 | + * Checks if it is possible to add or remove the specified modifier to the modifier list, |
| 60 | + * and throws an exception if the operation is not possible. Does not actually modify |
| 61 | + * anything. |
| 62 | + * |
| 63 | + * @param name the name of the modifier to check the add or remove possibility for. |
| 64 | + * @param value true if the modifier should be added, false if it should be removed. |
| 65 | + * @throws IncorrectOperationException if the modification fails for some reason. |
| 66 | + */ |
| 67 | + void checkSetModifierProperty(@PsiModifier.ModifierConstant @Nonnull @NonNls String name, boolean value) |
| 68 | + throws IncorrectOperationException; |
69 | 69 | } |
0 commit comments