Package org.derive4j.processor.api.model
Class MatchMethods.Lazy
- java.lang.Object
-
- org.derive4j.processor.api.model.MatchMethod
-
- org.derive4j.processor.api.model.MatchMethods.Lazy
-
- Enclosing class:
- MatchMethods
private static final class MatchMethods.Lazy extends MatchMethod
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.derive4j.processor.api.model.MatchMethod
MatchMethod.Case<R>
-
-
Field Summary
Fields Modifier and Type Field Description private MatchMethod
evaluation
private java.util.function.Supplier<MatchMethod>
expression
-
Constructor Summary
Constructors Constructor Description Lazy(java.util.function.Supplier<MatchMethod> matchMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private MatchMethod
_evaluate()
<R> R
match(MatchMethod.Case<R> matchMethod)
-
Methods inherited from class org.derive4j.processor.api.model.MatchMethod
element, matchMethod, returnTypeVariable
-
-
-
-
Field Detail
-
expression
private volatile java.util.function.Supplier<MatchMethod> expression
-
evaluation
private MatchMethod evaluation
-
-
Constructor Detail
-
Lazy
Lazy(java.util.function.Supplier<MatchMethod> matchMethod)
-
-
Method Detail
-
_evaluate
private MatchMethod _evaluate()
-
match
public <R> R match(MatchMethod.Case<R> matchMethod)
- Specified by:
match
in classMatchMethod
-
-