|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.aptina.beans.internal.BeanInfoFactory
public class BeanInfoFactory
状態クラスから生成される Bean クラスの情報を作成するクラスです.
フィールドの概要 | |
---|---|
protected AnnotationMirror |
beanStateAnnotation
処理対象のクラスに付けられた BeanState アノテーションを表現する AnnotationMirror |
protected ProcessingEnvironment |
env
ProcessingEnvironment |
protected boolean |
hasError
状態クラスにエラーがある場合は true |
protected static Set<Modifier> |
IGNORE_FIELD_MODIFIERS
プロパティの対象とならないフィールドが持つ修飾子の Set です. |
protected EnumMessageTextFormatter<DiagnosticMessageCode> |
messageFormatter
メッセージフォーマッタ |
コンストラクタの概要 | |
---|---|
BeanInfoFactory(ProcessingEnvironment env)
インスタンスを構築します. |
メソッドの概要 | |
---|---|
BeanInfo |
createBeanInfo(TypeElement typeElement)
状態クラスの TypeElement を処理して Bean クラスの情報を持つ BeanInfo を生成します. |
protected void |
printMessage(Element element,
AnnotationMirror annotation,
DiagnosticMessageCode messageCode,
Object... args)
メッセージを出力します. |
protected void |
printMessage(Element element,
DiagnosticMessageCode messageCode,
Object... args)
メッセージを出力します. |
protected ConstructorInfo |
processConstructor(ExecutableElement executableElement)
状態クラスのコンストラクタに対応する ExecutableElement を処理して Bean
クラスのコンストラクタ情報を集めます. |
protected PropertyInfo |
processField(VariableElement variableElement)
状態クラスのフィールドに対応する VariableElement を処理して Bean クラスのプロパティ情報を集めます. |
protected void |
processMethod(ExecutableElement executableElement,
BeanInfo beanInfo)
状態クラスのメソッドに対応する ExecutableElement を処理して Bean クラスのプロパティ情報を修正します. |
protected BeanInfo |
processType(TypeElement typeElement)
状態クラスの TypeElement を処理して Bean クラスの情報を集めます. |
protected static String |
toBeanClassName(String stateClassName)
状態クラスの名前から対応する Bean クラスの名前を返します. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final Set<Modifier> IGNORE_FIELD_MODIFIERS
Set
です.
protected ProcessingEnvironment env
ProcessingEnvironment
protected EnumMessageTextFormatter<DiagnosticMessageCode> messageFormatter
protected AnnotationMirror beanStateAnnotation
BeanState
アノテーションを表現する AnnotationMirror
protected boolean hasError
true
コンストラクタの詳細 |
---|
public BeanInfoFactory(ProcessingEnvironment env)
env
- ProcessingEnvironment
メソッドの詳細 |
---|
public BeanInfo createBeanInfo(TypeElement typeElement)
TypeElement
を処理して Bean クラスの情報を持つ BeanInfo
を生成します.
typeElement
- 状態クラスの TypeElement
BeanInfo
protected BeanInfo processType(TypeElement typeElement)
TypeElement
を処理して Bean クラスの情報を集めます.
typeElement
- 状態クラスの TypeElement
protected PropertyInfo processField(VariableElement variableElement)
VariableElement
を処理して Bean クラスのプロパティ情報を集めます.
variableElement
- 状態クラスのフィールドに対応する VariableElement
protected ConstructorInfo processConstructor(ExecutableElement executableElement)
ExecutableElement
を処理して Bean
クラスのコンストラクタ情報を集めます.
executableElement
- 状態クラスのコンストラクタに対応する ExecutableElement
protected void processMethod(ExecutableElement executableElement, BeanInfo beanInfo)
ExecutableElement
を処理して Bean クラスのプロパティ情報を修正します.
executableElement
- 状態クラスのメソッドに対応する ExecutableElement
beanInfo
- Bean クラスの情報protected static String toBeanClassName(String stateClassName)
stateClassName
- 状態クラスの単純名
protected void printMessage(Element element, DiagnosticMessageCode messageCode, Object... args)
element
- メッセージの対象となる要素messageCode
- メッセージコードargs
- メッセージに埋め込む引数protected void printMessage(Element element, AnnotationMirror annotation, DiagnosticMessageCode messageCode, Object... args)
element
- メッセージの対象となる要素annotation
- メッセージの対象となるアノテーションmessageCode
- メッセージコードargs
- メッセージに埋め込む引数
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |