예제 #1
0
 @Override
 @Nullable
 public Invokable invoke(Invokation invokation, Object... parameters) {
   String message = CharMatcher.WHITESPACE.trimFrom(parameters[0].toString());
   StaticEnvironment.processing().getMessager().printMessage(Diagnostic.Kind.ERROR, message);
   return null;
 }
 protected final ProcessingEnvironment processing() {
   return StaticEnvironment.processing();
 }
예제 #3
0
 private static Messager getMessager() {
   return StaticEnvironment.processing().getMessager();
 }
예제 #4
0
 private static Filer getFiler() {
   return StaticEnvironment.processing().getFiler();
 }