public class OptionalChainInliner extends java.lang.Object implements CallInliner
Optional.of(xyz).map(lambda).filter(lambda).flatMap(lambda).orElseGet(lambda)| Constructor and Description |
|---|
OptionalChainInliner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
mayInferPreciseType(PsiExpression expression) |
boolean |
tryInlineCall(CFGBuilder builder,
PsiMethodCallExpression call)
Try to inline the supplied call
|
public boolean tryInlineCall(CFGBuilder builder, PsiMethodCallExpression call)
CallInlinertryInlineCall in interface CallInlinerbuilder - a builder to use for inlining. Current state is before given method call (call arguments and qualifier are not
handled yet).call - a call to inlinepublic boolean mayInferPreciseType(PsiExpression expression)
mayInferPreciseType in interface CallInlinerexpression - expression to test