Package org.derive4j.processor.api
Class InstanceLocations.LambdaCases<X>
- java.lang.Object
-
- org.derive4j.processor.api.InstanceLocations.LambdaCases<X>
-
- All Implemented Interfaces:
InstanceLocation.Cases<X>
- Enclosing class:
- InstanceLocations
private static final class InstanceLocations.LambdaCases<X> extends java.lang.Object implements InstanceLocation.Cases<X>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<com.squareup.javapoet.ClassName,X>
generatedIn
private InstanceLocations.MethodMapper<X>
method
private InstanceLocations.ValueMapper<X>
value
-
Constructor Summary
Constructors Constructor Description LambdaCases(InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X
generatedIn(com.squareup.javapoet.ClassName className)
X
method(com.squareup.javapoet.ClassName className, javax.lang.model.element.ExecutableElement executableElement, java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror> typeArgs)
X
value(com.squareup.javapoet.ClassName className, javax.lang.model.element.VariableElement variableElement)
-
-
-
Field Detail
-
value
private final InstanceLocations.ValueMapper<X> value
-
generatedIn
private final java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn
-
method
private final InstanceLocations.MethodMapper<X> method
-
-
Constructor Detail
-
LambdaCases
LambdaCases(InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
-
Method Detail
-
value
public X value(com.squareup.javapoet.ClassName className, javax.lang.model.element.VariableElement variableElement)
- Specified by:
value
in interfaceInstanceLocation.Cases<X>
-
generatedIn
public X generatedIn(com.squareup.javapoet.ClassName className)
- Specified by:
generatedIn
in interfaceInstanceLocation.Cases<X>
-
method
public X method(com.squareup.javapoet.ClassName className, javax.lang.model.element.ExecutableElement executableElement, java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror> typeArgs)
- Specified by:
method
in interfaceInstanceLocation.Cases<X>
-
-