public TypeInfo toTypeInfo(TypeElement element) { return TypeInfoTypeElement.wrap(this, element); }
public TypeInfo toTypeInfo(TypeElement element) { return TypeInfoTypeElement.wrap(this, element); }
@Override public TypeInfo apply(Element input) { TypeElement element = TypeElement.class.cast(input); return TypeInfoTypeElement.wrap(processingEnv, element); }
@Override public TypeInfo apply(Element input) { TypeElement element = TypeElement.class.cast(input); return TypeInfoTypeElement.wrap(processingEnv, element); }
@Override protected Optional<TypeInfo> compute() { Optional<TypeInfo> res = Optional.empty(); Element enclosingElement = element.getEnclosingElement(); if (TypeElement.class.isInstance(enclosingElement)) { TypeElement typeElement = TypeElement.class.cast(enclosingElement); TypeInfoTypeElement typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); res = Optional.of(typeInfo); } return res; } }
@Override protected Optional<TypeInfo> compute() { Optional<TypeInfo> res = Optional.empty(); Element enclosingElement = element.getEnclosingElement(); if (TypeElement.class.isInstance(enclosingElement)) { TypeElement typeElement = TypeElement.class.cast(enclosingElement); TypeInfoTypeElement typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); res = Optional.of(typeInfo); } return res; } }
@Override default Artifact generateArtifact(ProcessingEnvironmentWrapper processingEnv, Element element) { TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return generate(typeInfo); }
Optional<TypeInfo> computeTypeInfo() { Element element = processingEnv.asElement(type); TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return Optional.of(typeInfo); }
Optional<TypeInfo> computeTypeInfo() { Element element = processingEnv.asElement(type); TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return Optional.of(typeInfo); }
@Override default Artifact generateArtifact(ProcessingEnvironmentWrapper processingEnv, Element element) { TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return generate(typeInfo); }
Optional<TypeInfo> computeTypeInfo() { Element element = processingEnv.asElement(type); TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return Optional.of(typeInfo); }
Optional<TypeInfo> computeTypeInfo() { Element element = processingEnv.asElement(type); TypeElement typeElement = TypeElement.class.cast(element); TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, typeElement); return Optional.of(typeInfo); }
@Override public Stream<TypeInfo> declaredTypeInfoStream() { return element.getEnclosedElements() .stream() .filter(el -> Util.isTypeInfoKind(el)) .map(TypeElement.class::cast) .map(el -> TypeInfoTypeElement.wrap(processingEnv, el)); }
@Override public Stream<TypeInfo> declaredTypeInfoStream() { return element.getEnclosedElements() .stream() .filter(el -> Util.isTypeInfoKind(el)) .map(TypeElement.class::cast) .map(el -> TypeInfoTypeElement.wrap(processingEnv, el)); }
public Stream<TypeInfo> typesInfoAnnotatedWith(Class<? extends Annotation> annotationType) { final ProcessingEnvironmentWrapper processingEnvironmentWrapper; processingEnvironmentWrapper = ProcessingEnvironmentWrapper.wrapperOf(processingEnv); return typesAnnotatedWith(annotationType) .map(input -> TypeInfoTypeElement.wrap(processingEnvironmentWrapper, input)); }
public Stream<TypeInfo> typesInfoAnnotatedWith(Class<? extends Annotation> annotationType) { final ProcessingEnvironmentWrapper processingEnvironmentWrapper; processingEnvironmentWrapper = ProcessingEnvironmentWrapper.wrapperOf(processingEnv); return typesAnnotatedWith(annotationType) .map(input -> TypeInfoTypeElement.wrap(processingEnvironmentWrapper, input)); }
private Optional<RoundElement> wrap(ProcessingEnvironmentWrapper wrapper, ExecutableElement element) { Optional<RoundElement> res = Optional.empty(); Element enclosingElement = element.getEnclosingElement(); if (Apt.isType(enclosingElement)) { TypeInfo typeInfo = TypeInfoTypeElement.wrap(wrapper, (TypeElement) enclosingElement); TypeParameterInfoMap typeParameterInfoMap = typeInfo.typeParameterInfoMap(); MethodInfo methodInfo; methodInfo = MethodInfoExecutableElement.wrap(wrapper, element, typeParameterInfoMap); RoundElement round = new RoundElement(typeInfo, methodInfo); res = Optional.of(round); } return res; }
private Optional<RoundElement> wrap(ProcessingEnvironmentWrapper wrapper, ExecutableElement element) { Optional<RoundElement> res = Optional.empty(); Element enclosingElement = element.getEnclosingElement(); if (Apt.isType(enclosingElement)) { TypeInfo typeInfo = TypeInfoTypeElement.wrap(wrapper, (TypeElement) enclosingElement); TypeParameterInfoMap typeParameterInfoMap = typeInfo.typeParameterInfoMap(); MethodInfo methodInfo; methodInfo = MethodInfoExecutableElement.wrap(wrapper, element, typeParameterInfoMap); RoundElement round = new RoundElement(typeInfo, methodInfo); res = Optional.of(round); } return res; }
@Override default Artifact generateArtifact(ProcessingEnvironmentWrapper processingEnv, Element element) { Artifact artifact = Artifact.empty(); Element enclosingElement = element.getEnclosingElement(); if (Apt.isType(enclosingElement)) { TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, (TypeElement) enclosingElement); TypeParameterInfoMap typeParameterInfoMap = typeInfo.typeParameterInfoMap(); MethodInfo methodInfo; methodInfo = MethodInfoExecutableElement.wrap(processingEnv, (ExecutableElement) element, typeParameterInfoMap); artifact = generate(typeInfo, methodInfo); } return artifact; }
@Override default Artifact generateArtifact(ProcessingEnvironmentWrapper processingEnv, Element element) { Artifact artifact = Artifact.empty(); Element enclosingElement = element.getEnclosingElement(); if (Apt.isType(enclosingElement)) { TypeInfo typeInfo = TypeInfoTypeElement.wrap(processingEnv, (TypeElement) enclosingElement); TypeParameterInfoMap typeParameterInfoMap = typeInfo.typeParameterInfoMap(); MethodInfo methodInfo; methodInfo = MethodInfoExecutableElement.wrap(processingEnv, (ExecutableElement) element, typeParameterInfoMap); artifact = generate(typeInfo, methodInfo); } return artifact; }