Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ailabs-software/0dac03044b89d371b664e29d93466ddf to your computer and use it in GitHub Desktop.
Save ailabs-software/0dac03044b89d371b664e29d93466ddf to your computer and use it in GitHub Desktop.
Pathetic hello world
package ailabs.jclosure.client.encoding;
import java.util.Set;
import java.util.LinkedHashSet;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.TypeElement;
/** @fileoverview Processor to register classes */
@SupportedAnnotationTypes("*")
public class SerializableProcessor extends AbstractProcessor
{
/* @Override
public Set<String> getSupportedAnnotationTypes()
{
Set<String> annotatations = new LinkedHashSet<String>();
System.out.println("Serializable.class.getCanonicalName()");
System.out.println( Serializable.class.getCanonicalName() );
annotatations.add( Serializable.class.getCanonicalName() );
return annotatations;
} */
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
{
throw new Error("HELLO_THERE");
// return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment