public TypeInstance addReturnAction ( String returnActionName , AnnotationInstance annotation , TypeDeclaration outerType ) { TypeInstance formBeanType = CompilerUtils . getTypeInstance ( annotation , OUTPUT_FORM_BEAN_TYPE_ATTR , true ) ; if ( formBeanType == null ) { String memberFieldName = CompilerUtils . getString ( annotation , OUTPUT_FORM_BEAN_ATTR , true ) ; if ( memberFieldName != null ) { FieldDeclaration field = CompilerUtils . findField ( outerType , memberFieldName ) ; if ( field != null ) formBeanType = field . getType ( ) ; } } String formTypeName = formBeanType != null && formBeanType instanceof DeclaredType ? CompilerUtils . getDeclaration ( ( DeclaredType ) formBeanType ) . getQualifiedName ( ) : null ; addReturnAction ( returnActionName , formTypeName ) ; return formBeanType ; }
Add a return - action from an annotation .