Package org.derive4j.processor.api
Class InstanceLocations
- java.lang.Object
-
- org.derive4j.processor.api.InstanceLocations
-
public final class InstanceLocations extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceLocations.CaseOfMatchersstatic classInstanceLocations.CasesMatchersprivate static classInstanceLocations.GeneratedInprivate static classInstanceLocations.LambdaCases<X>private static classInstanceLocations.Lazyprivate static classInstanceLocations.Methodstatic interfaceInstanceLocations.MethodMapper<X>private static classInstanceLocations.Valuestatic interfaceInstanceLocations.ValueMapper<X>
-
Field Summary
Fields Modifier and Type Field Description private static InstanceLocation.Cases<com.squareup.javapoet.ClassName>classNameGetterprivate static InstanceLocation.Cases<java.util.Optional<javax.lang.model.element.ExecutableElement>>executableElementGetterprivate static InstanceLocation.Cases<java.util.Optional<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>>>typeArgsGetterprivate static InstanceLocation.Cases<java.util.Optional<javax.lang.model.element.VariableElement>>variableElementGetter
-
Constructor Summary
Constructors Modifier Constructor Description privateInstanceLocations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstanceLocations.CaseOfMatchers.TotalMatcher_ValuecaseOf(InstanceLocation instanceLocation)static InstanceLocations.CasesMatchers.TotalMatcher_Valuecases()static <X> InstanceLocation.Cases<X>cases(InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)static InstanceLocationgeneratedIn(com.squareup.javapoet.ClassName className)static com.squareup.javapoet.ClassNamegetClassName(InstanceLocation instanceLocation)static java.util.Optional<javax.lang.model.element.ExecutableElement>getExecutableElement(InstanceLocation instanceLocation)static java.util.Optional<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>>getTypeArgs(InstanceLocation instanceLocation)static java.util.Optional<javax.lang.model.element.VariableElement>getVariableElement(InstanceLocation instanceLocation)static InstanceLocationlazy(java.util.function.Supplier<InstanceLocation> instanceLocation)static InstanceLocationmethod(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)static java.util.function.Function<InstanceLocation,InstanceLocation>modClassName(java.util.function.Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> classNameMod)static java.util.function.Function<InstanceLocation,InstanceLocation>modExecutableElement(java.util.function.Function<javax.lang.model.element.ExecutableElement,javax.lang.model.element.ExecutableElement> executableElementMod)static java.util.function.Function<InstanceLocation,InstanceLocation>modTypeArgs(java.util.function.Function<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>,java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>> typeArgsMod)static java.util.function.Function<InstanceLocation,InstanceLocation>modVariableElement(java.util.function.Function<javax.lang.model.element.VariableElement,javax.lang.model.element.VariableElement> variableElementMod)static java.util.function.Function<InstanceLocation,InstanceLocation>setClassName(com.squareup.javapoet.ClassName newClassName)static java.util.function.Function<InstanceLocation,InstanceLocation>setExecutableElement(javax.lang.model.element.ExecutableElement newExecutableElement)static java.util.function.Function<InstanceLocation,InstanceLocation>setTypeArgs(java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror> newTypeArgs)static java.util.function.Function<InstanceLocation,InstanceLocation>setVariableElement(javax.lang.model.element.VariableElement newVariableElement)static InstanceLocationvalue(com.squareup.javapoet.ClassName className, javax.lang.model.element.VariableElement variableElement)
-
-
-
Field Detail
-
classNameGetter
private static final InstanceLocation.Cases<com.squareup.javapoet.ClassName> classNameGetter
-
variableElementGetter
private static final InstanceLocation.Cases<java.util.Optional<javax.lang.model.element.VariableElement>> variableElementGetter
-
executableElementGetter
private static final InstanceLocation.Cases<java.util.Optional<javax.lang.model.element.ExecutableElement>> executableElementGetter
-
typeArgsGetter
private static final InstanceLocation.Cases<java.util.Optional<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>>> typeArgsGetter
-
-
Method Detail
-
cases
public static <X> InstanceLocation.Cases<X> cases(InstanceLocations.ValueMapper<X> value, java.util.function.Function<com.squareup.javapoet.ClassName,X> generatedIn, InstanceLocations.MethodMapper<X> method)
-
value
public static InstanceLocation value(com.squareup.javapoet.ClassName className, javax.lang.model.element.VariableElement variableElement)
-
generatedIn
public static InstanceLocation generatedIn(com.squareup.javapoet.ClassName className)
-
method
public static InstanceLocation 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)
-
lazy
public static InstanceLocation lazy(java.util.function.Supplier<InstanceLocation> instanceLocation)
-
cases
public static InstanceLocations.CasesMatchers.TotalMatcher_Value cases()
-
caseOf
public static InstanceLocations.CaseOfMatchers.TotalMatcher_Value caseOf(InstanceLocation instanceLocation)
-
getClassName
public static com.squareup.javapoet.ClassName getClassName(InstanceLocation instanceLocation)
-
getVariableElement
public static java.util.Optional<javax.lang.model.element.VariableElement> getVariableElement(InstanceLocation instanceLocation)
-
getExecutableElement
public static java.util.Optional<javax.lang.model.element.ExecutableElement> getExecutableElement(InstanceLocation instanceLocation)
-
getTypeArgs
public static java.util.Optional<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>> getTypeArgs(InstanceLocation instanceLocation)
-
setClassName
public static java.util.function.Function<InstanceLocation,InstanceLocation> setClassName(com.squareup.javapoet.ClassName newClassName)
-
modClassName
public static java.util.function.Function<InstanceLocation,InstanceLocation> modClassName(java.util.function.Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> classNameMod)
-
setVariableElement
public static java.util.function.Function<InstanceLocation,InstanceLocation> setVariableElement(javax.lang.model.element.VariableElement newVariableElement)
-
modVariableElement
public static java.util.function.Function<InstanceLocation,InstanceLocation> modVariableElement(java.util.function.Function<javax.lang.model.element.VariableElement,javax.lang.model.element.VariableElement> variableElementMod)
-
setExecutableElement
public static java.util.function.Function<InstanceLocation,InstanceLocation> setExecutableElement(javax.lang.model.element.ExecutableElement newExecutableElement)
-
modExecutableElement
public static java.util.function.Function<InstanceLocation,InstanceLocation> modExecutableElement(java.util.function.Function<javax.lang.model.element.ExecutableElement,javax.lang.model.element.ExecutableElement> executableElementMod)
-
setTypeArgs
public static java.util.function.Function<InstanceLocation,InstanceLocation> setTypeArgs(java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror> newTypeArgs)
-
modTypeArgs
public static java.util.function.Function<InstanceLocation,InstanceLocation> modTypeArgs(java.util.function.Function<java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>,java.util.Map<javax.lang.model.type.TypeVariable,javax.lang.model.type.TypeMirror>> typeArgsMod)
-
-