Class InstanceLocations
java.lang.Object
org.derive4j.processor.api.InstanceLocations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classprivate static final classprivate static final classprivate static final classprivate static final classstatic interfaceprivate static final classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InstanceLocation.Cases<com.squareup.javapoet.ClassName> private static final InstanceLocation.Cases<Optional<ExecutableElement>> private static final InstanceLocation.Cases<Optional<Map<TypeVariable, TypeMirror>>> private static final InstanceLocation.Cases<Optional<VariableElement>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseOf(InstanceLocation instanceLocation) cases()static <X> InstanceLocation.Cases<X> cases(InstanceLocations.ValueMapper<X> value, 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 Optional<ExecutableElement> getExecutableElement(InstanceLocation instanceLocation) static Optional<Map<TypeVariable, TypeMirror>> getTypeArgs(InstanceLocation instanceLocation) static Optional<VariableElement> getVariableElement(InstanceLocation instanceLocation) static InstanceLocationlazy(Supplier<InstanceLocation> instanceLocation) static InstanceLocationmethod(com.squareup.javapoet.ClassName className, ExecutableElement executableElement, Map<TypeVariable, TypeMirror> typeArgs) static Function<InstanceLocation, InstanceLocation> modClassName(Function<com.squareup.javapoet.ClassName, com.squareup.javapoet.ClassName> classNameMod) static Function<InstanceLocation, InstanceLocation> modExecutableElement(Function<ExecutableElement, ExecutableElement> executableElementMod) static Function<InstanceLocation, InstanceLocation> modTypeArgs(Function<Map<TypeVariable, TypeMirror>, Map<TypeVariable, TypeMirror>> typeArgsMod) static Function<InstanceLocation, InstanceLocation> modVariableElement(Function<VariableElement, VariableElement> variableElementMod) static Function<InstanceLocation, InstanceLocation> setClassName(com.squareup.javapoet.ClassName newClassName) static Function<InstanceLocation, InstanceLocation> setExecutableElement(ExecutableElement newExecutableElement) static Function<InstanceLocation, InstanceLocation> setTypeArgs(Map<TypeVariable, TypeMirror> newTypeArgs) static Function<InstanceLocation, InstanceLocation> setVariableElement(VariableElement newVariableElement) static InstanceLocationvalue(com.squareup.javapoet.ClassName className, VariableElement variableElement)
-
Field Details
-
classNameGetter
-
variableElementGetter
-
executableElementGetter
-
typeArgsGetter
-
-
Constructor Details
-
InstanceLocations
private InstanceLocations()
-
-
Method Details
-
cases
public static <X> InstanceLocation.Cases<X> cases(InstanceLocations.ValueMapper<X> value, Function<com.squareup.javapoet.ClassName, X> generatedIn, InstanceLocations.MethodMapper<X> method) -
value
public static InstanceLocation value(com.squareup.javapoet.ClassName className, VariableElement variableElement) -
generatedIn
-
method
public static InstanceLocation method(com.squareup.javapoet.ClassName className, ExecutableElement executableElement, Map<TypeVariable, TypeMirror> typeArgs) -
lazy
-
cases
-
caseOf
public static InstanceLocations.CaseOfMatchers.TotalMatcher_Value caseOf(InstanceLocation instanceLocation) -
getClassName
-
getVariableElement
-
getExecutableElement
-
getTypeArgs
public static Optional<Map<TypeVariable, TypeMirror>> getTypeArgs(InstanceLocation instanceLocation) -
setClassName
public static Function<InstanceLocation, InstanceLocation> setClassName(com.squareup.javapoet.ClassName newClassName) -
modClassName
public static Function<InstanceLocation, InstanceLocation> modClassName(Function<com.squareup.javapoet.ClassName, com.squareup.javapoet.ClassName> classNameMod) -
setVariableElement
public static Function<InstanceLocation, InstanceLocation> setVariableElement(VariableElement newVariableElement) -
modVariableElement
public static Function<InstanceLocation, InstanceLocation> modVariableElement(Function<VariableElement, VariableElement> variableElementMod) -
setExecutableElement
public static Function<InstanceLocation, InstanceLocation> setExecutableElement(ExecutableElement newExecutableElement) -
modExecutableElement
public static Function<InstanceLocation, InstanceLocation> modExecutableElement(Function<ExecutableElement, ExecutableElement> executableElementMod) -
setTypeArgs
public static Function<InstanceLocation, InstanceLocation> setTypeArgs(Map<TypeVariable, TypeMirror> newTypeArgs) -
modTypeArgs
public static Function<InstanceLocation, InstanceLocation> modTypeArgs(Function<Map<TypeVariable, TypeMirror>, Map<TypeVariable, TypeMirror>> typeArgsMod)
-