Interface ExprMirror.FunctionalExprMirror
-
- All Superinterfaces:
ExprMirror
,ExprMirror.PolyExprMirror
- All Known Subinterfaces:
ExprMirror.LambdaExprMirror
,ExprMirror.MethodRefMirror
- Enclosing interface:
- ExprMirror
public static interface ExprMirror.FunctionalExprMirror extends ExprMirror.PolyExprMirror
Mirror of some expression that targets a functional interface type: lambda or method reference.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.java.types.internal.infer.ExprMirror
ExprMirror.BranchingMirror, ExprMirror.CtorInvocationMirror, ExprMirror.FunctionalExprMirror, ExprMirror.InvocationMirror, ExprMirror.LambdaExprMirror, ExprMirror.MethodRefMirror, ExprMirror.PolyExprMirror, ExprMirror.TypeSpecies
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setFunctionalMethod(@Nullable JMethodSig methodType)
This is the method that is overridden in getInferredType.void
setInferredType(@Nullable JTypeMirror mirror)
For a method ref or lambda, this is the type of the functional interface.-
Methods inherited from interface net.sourceforge.pmd.lang.java.types.internal.infer.ExprMirror
finishStandaloneInference, getInferredType, getLocation, getStandaloneSpecies, getTypingContext, isEquivalentToUnderlyingAst
-
Methods inherited from interface net.sourceforge.pmd.lang.java.types.internal.infer.ExprMirror.PolyExprMirror
getEnclosingType, getStandaloneType, unresolvedType
-
-
-
-
Method Detail
-
setInferredType
void setInferredType(@Nullable JTypeMirror mirror)
For a method ref or lambda, this is the type of the functional interface. E.g. instringStream.map(String::isEmpty)
, this isjava.util.function.Function<java.lang.String, java.lang.Boolean>
May be null if we're resetting some partial data.
- Specified by:
setInferredType
in interfaceExprMirror
-
setFunctionalMethod
void setFunctionalMethod(@Nullable JMethodSig methodType)
This is the method that is overridden in getInferredType. E.g. instringStream.map(String::isEmpty)
, this isjava.util.function.Function<java.lang.String, java.lang.Boolean>.apply(java.lang.String) -> java.lang.Boolean
May be null if we're resetting some partial data.
-
-