com.dp4j.processors
Class SingletonProcessor

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

@SupportedAnnotationTypes(value={"com.dp4j.Singleton","org.jpatterns.gof.SingletonPattern","com.google.code.annotation.pattern.design.creational.Singleton"})
public class SingletonProcessor
extends DProcessor

TODO: there must be only one instance, getInstance

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
SingletonProcessor()
           
 
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

SingletonProcessor

public SingletonProcessor()
Method Detail

processElement

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


Copyright © 2011. All Rights Reserved.