public class TypeConversionDescriptor extends TypeConversionDescriptorBase
Constructor and Description |
---|
TypeConversionDescriptor(java.lang.String stringToReplace,
java.lang.String replaceByString) |
TypeConversionDescriptor(java.lang.String stringToReplace,
java.lang.String replaceByString,
PsiExpression expression) |
TypeConversionDescriptor(java.lang.String stringToReplace,
java.lang.String replaceByString,
PsiType conversionType) |
Modifier and Type | Method and Description |
---|---|
protected PsiExpression |
adjustExpressionBeforeReplacement(PsiExpression expression) |
PsiType |
conversionType() |
PsiExpression |
getExpression() |
java.lang.String |
getReplaceByString() |
java.lang.String |
getStringToReplace() |
PsiExpression |
replace(PsiExpression expression,
TypeEvaluator evaluator) |
static PsiExpression |
replaceExpression(PsiExpression expression,
java.lang.String stringToReplace,
java.lang.String replaceByString) |
void |
setExpression(PsiExpression expression) |
void |
setReplaceByString(java.lang.String replaceByString) |
void |
setStringToReplace(java.lang.String stringToReplace) |
java.lang.String |
toString() |
TypeConversionDescriptor |
withConversionType(PsiType conversionType) |
getRoot, setRoot
public TypeConversionDescriptor(java.lang.String stringToReplace, java.lang.String replaceByString)
public TypeConversionDescriptor(java.lang.String stringToReplace, java.lang.String replaceByString, PsiExpression expression)
public TypeConversionDescriptor(java.lang.String stringToReplace, java.lang.String replaceByString, PsiType conversionType)
public TypeConversionDescriptor withConversionType(PsiType conversionType)
public void setStringToReplace(java.lang.String stringToReplace)
public void setReplaceByString(java.lang.String replaceByString)
public java.lang.String getStringToReplace()
public java.lang.String getReplaceByString()
public PsiExpression getExpression()
public void setExpression(PsiExpression expression)
public PsiType conversionType()
conversionType
in class TypeConversionDescriptorBase
public PsiExpression replace(PsiExpression expression, TypeEvaluator evaluator)
replace
in class TypeConversionDescriptorBase
protected PsiExpression adjustExpressionBeforeReplacement(PsiExpression expression)
public static PsiExpression replaceExpression(PsiExpression expression, java.lang.String stringToReplace, java.lang.String replaceByString)
public java.lang.String toString()
toString
in class TypeConversionDescriptorBase