@FunctionalInterface
public interface InlineTransformer
| Modifier and Type | Interface and Description |
|---|---|
static class |
InlineTransformer.ConvertToSingleReturnTransformer |
static class |
InlineTransformer.NormalTransformer |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Function<PsiReference,InlineTransformer> |
getSuitableTransformer(PsiMethod method)
Returns the most suitable transformer for given method and given call site
|
default boolean |
isFallBackTransformer() |
PsiLocalVariable |
transformBody(PsiMethod methodCopy,
PsiReference callSite,
PsiType returnType)
Transforms method body in the way so it can be inserted into the call site.
|
PsiLocalVariable transformBody(PsiMethod methodCopy, PsiReference callSite, PsiType returnType)
methodCopy - non-physical copy of the method to be inlined (may be changed by this call)callSite - method callreturnType - substituted method return typedefault boolean isFallBackTransformer()
static java.util.function.Function<PsiReference,InlineTransformer> getSuitableTransformer(PsiMethod method)
method - method to inline (must have body)