All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tonivade.purefun.HigherKindProcessor Maven / Gradle / Ivy

/*
 * Copyright (c) 2018-2020, Antonio Gabriel Muñoz Conejo 
 * Distributed under the terms of the MIT License
 */
package com.github.tonivade.purefun;

import com.sun.tools.javac.processing.JavacProcessingEnvironment;

import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.element.TypeElement;

@SupportedAnnotationTypes("com.github.tonivade.purefun.HigherKind")
public class HigherKindProcessor extends AbstractJavacProcessor {

  @Override
  protected ClassTreeTranslator buildVisitor(JavacProcessingEnvironment javacProcessingEnvironment, TypeElement element) {
    return new ClassTreeTranslator(new HigherKindTransformer(javacProcessingEnvironment.getContext()), element);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy