org.seasar.aptina.beans.internal
クラス BeansProcessor

java.lang.Object
  上位を拡張 javax.annotation.processing.AbstractProcessor
      上位を拡張 org.seasar.aptina.beans.internal.BeansProcessor
すべての実装されたインタフェース:
Processor

@SupportedSourceVersion(value=RELEASE_6)
@SupportedAnnotationTypes(value="org.seasar.aptina.beans.BeanState")
public class BeansProcessor
extends AbstractProcessor

BeanState で注釈されたクラス (状態クラス) のフィールドに対する getter/setter メソッドを持つサブクラス (Bean クラス) を生成する Annotation Processor です.

作成者:
koichik

フィールドの概要
protected  EnumMessageFormatter<DiagnosticMessageCode> messageFormatter
          メッセージフォーマッタ
 
クラス javax.annotation.processing.AbstractProcessor から継承されたフィールド
processingEnv
 
コンストラクタの概要
BeansProcessor()
           
 
メソッドの概要
protected  void printMessage(Element element, DiagnosticMessageCode messageCode, Object... args)
          メッセージを出力します.
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
          BeanState で注釈されたクラス (状態クラス) のフィールドに対する getter/setter メソッドを持つサブクラス (Bean クラス) を生成します.
 
クラス javax.annotation.processing.AbstractProcessor から継承されたメソッド
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

messageFormatter

protected EnumMessageFormatter<DiagnosticMessageCode> messageFormatter
メッセージフォーマッタ

コンストラクタの詳細

BeansProcessor

public BeansProcessor()
メソッドの詳細

process

public boolean process(Set<? extends TypeElement> annotations,
                       RoundEnvironment roundEnv)
BeanState で注釈されたクラス (状態クラス) のフィールドに対する getter/setter メソッドを持つサブクラス (Bean クラス) を生成します.

定義:
インタフェース Processor 内の process
定義:
クラス AbstractProcessor 内の process

printMessage

protected void printMessage(Element element,
                            DiagnosticMessageCode messageCode,
                            Object... args)
メッセージを出力します.

パラメータ:
element - メッセージの対象となる要素
messageCode - メッセージコード
args - メッセージに埋め込む引数


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.