Created
May 25, 2017 05:12
-
-
Save ailabs-software/0dac03044b89d371b664e29d93466ddf to your computer and use it in GitHub Desktop.
Pathetic hello world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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