package com.intellij.refactoring.changeSignature;
+import com.intellij.openapi.util.NlsSafe;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.Nullable;
*
* @return parameter name.
*/
+ @NlsSafe
String getName();
/**
* @return default value, or null if the parameter wasn't added.
*/
@Nullable
+ @NlsSafe
String getDefaultValue();
/**
* Set parameter new name (to be changed to during refactoring)
* @param name new name
*/
- void setName(String name);
+ void setName(@NlsSafe String name);
/**
* Returns parameter type text
*
* @return type text
*/
+ @NlsSafe
String getTypeText();
/**
import com.intellij.openapi.util.NlsSafe;
import com.intellij.util.containers.UnmodifiableHashMap;
-import org.jetbrains.annotations.*;
+import org.jetbrains.annotations.Contract;
+import org.jetbrains.annotations.Nls;
+import org.jetbrains.annotations.NonNls;
+import org.jetbrains.annotations.NotNull;
import java.util.*;
return wrapWith("i");
}
+ /**
+ * @return an S element that wraps this element
+ */
+ @Contract(pure = true)
+ public @NotNull Element strikethrough() {
+ return wrapWith("s");
+ }
+
/**
* @param tagName name of the tag
* @return an empty tag