Package eu.bandm.tools.paisley
Interface CachedTransform.TryApply<A,B>
- Type Parameters:
A- the target type of the containing patternB- the target type of the contained subpattern
- All Known Subinterfaces:
ReflectionPatterns.Access<A>
- Enclosing class:
CachedTransform<A,B>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The functional interface for the method
CachedTransform.tryApply(A).-
Method Summary
-
Method Details
-
tryApply
Checks whether a target can be transformed and transforms it.- Parameters:
target- the object to be matched against.- Returns:
- a target for
Unary.bodyto be matched against. - Throws:
CachedTransform.ApplyException- if the target can not be transformed.- See Also:
-