org.bsc.processor
Class BaseAbstractProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.bsc.processor.BaseAbstractProcessor
- All Implemented Interfaces:
- Processor
public abstract class BaseAbstractProcessor
- extends AbstractProcessor
- Author:
- bsorrentino
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAbstractProcessor
public BaseAbstractProcessor()
info
protected void info(String msg)
warn
protected void warn(String msg)
warn
protected void warn(String msg,
Throwable t)
error
protected void error(String msg)
error
protected void error(String msg,
Throwable t)
getResourceFromClassPath
protected URL getResourceFromClassPath(String fqn)
- Parameters:
fqn -
- Returns:
getResourceFromClassPath
protected URL getResourceFromClassPath(String fqn,
ClassLoader cl)
- Parameters:
fqn - cl -
- Returns:
getElementsAnnotatedWith
protected void getElementsAnnotatedWith(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv,
BaseAbstractProcessor.Predicate p)
getResourceFormLocation
protected FileObject getResourceFormLocation(JavaFileManager.Location location,
String packageName,
String resource)
throws FileNotFoundException,
IOException
- Parameters:
location -
- Returns:
-
- Throws:
FileNotFoundException
IOException
createSourceOutputFile
protected FileObject createSourceOutputFile(String subfolder,
String filePath)
throws IOException
- Parameters:
subfolder - subfolderfilePath - relative path
- Returns:
-
- Throws:
IOException
getClassFromElement
protected Class<?> getClassFromElement(Element e)
throws ClassNotFoundException
- Parameters:
e -
- Returns:
-
- Throws:
ClassNotFoundException
getOptions
protected Map<String,String> getOptions()
- Returns:
getFullClassName
protected String getFullClassName(Element typeElement)
- Parameters:
typeElement -
- Returns:
Copyright © 2013. All Rights Reserved.