Class InstanceLocations


  • public final class InstanceLocations
    extends java.lang.Object
    • 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
    • Constructor Detail

      • InstanceLocations

        private InstanceLocations()
    • Method Detail

      • 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)
      • 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)
      • 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)