com.dp4j.processors
Class InstanceProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by com.dp4j.processors.DProcessor
          extended by com.dp4j.processors.InstanceProcessor
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes(value="com.mysimpatico.se.dp4java.annotations.singleton.instance")
public class InstanceProcessor
extends DProcessor

Processes @instance annotation verifying that it's: - static - field of a @Singleton annotated class - of the same type as the enclosing class TODO: Warning for: - not being private

Author:
simpatico

Field Summary
 
Fields inherited from class com.dp4j.processors.DProcessor
arrayBrac, clazz, elementUtils, encClass, javaLangClass, methTree, msgr, options, rs, symTable, thisExp, tm, trees, typeUtils, varArgsDots, verbose
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
InstanceProcessor()
           
 
Method Summary
protected  void processElement(Element e, TypeElement ann, boolean warningsOnly)
           
 
Methods inherited from class com.dp4j.processors.DProcessor
differentArg, emptyList, getArray, getArray, getArrayDecl, getArrayDecl, getBlock, getCatches, getCatches, getDeclaredType, getElementsAnnotated, getEmptyArgsConstructor, getId, getId, getIdAfterImporting, getIdentAfterImporting, getIfNull, getIfNull, getMethodInvoc, getMethodInvoc, getMethodInvoc, getMethodInvoc, getMethodInvoc, getMethodInvoc, getMethodInvoc, getMethodsWithSameName, getNull, getParamsList, getRefMethodInvoc, getSmallerList, getSupportedOptions, getSupportedSourceVersion, getTypeElement, getTypes, getVarDecl, getVarDecl, getVarDecl, getVarDecl, init, injectBefore, isOnlyHandler, merge, printMsg, printVerbose, process, replace, throwException, throwExceptions, throwExceptions, toList, toString
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceProcessor

public InstanceProcessor()
Method Detail

processElement

protected void processElement(Element e,
                              TypeElement ann,
                              boolean warningsOnly)
Specified by:
processElement in class DProcessor


Copyright © 2011. All Rights Reserved.