Class ActionMethodDocument
java.lang.Object
com.iohao.net.framework.core.doc.ActionMethodDocument
Documentation model for a single action method, capturing parameter types, return types,
comments, and type-mapping information used for client SDK code generation.
- Author:
- 渔民小镇
- date:
- 2024-06-26
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ActionCommandDocAction method name (PascalCase).final StringController class simple name.Actual (generic) type name of the parameter.Parameter comment.Parameter name.Mapped parameter type name.Class<?> Parameter type class.booleantrue if the parameter is a List type.final booleantrue if the method has a business data parameter.booleantrue if the parameter type is a built-in protocol fragment.booleanRoute member constant name.final StringJavadoc comment of the method.SDK result list getter method name.SDK result getter method name.Return value comment.Actual (generic) type name of the return value.booleanbooleantrue if the return type is a built-in protocol fragment.Class<?> Return value type class.SDK API method name.final TypeMappingDocument -
Constructor Summary
ConstructorsConstructorDescriptionActionMethodDocument(ActionCommandDoc actionCommandDoc, TypeMappingDocument typeMappingDocument) Create a new method document from the given command doc and type mapping. -
Method Summary
Modifier and TypeMethodDescriptionAction method name (PascalCase).Controller class simple name.Actual (generic) type name of the parameter.Parameter comment.Parameter name.Mapped parameter type name.Class<?> Parameter type class.Route member constant name.Javadoc comment of the method.SDK result list getter method name.SDK result getter method name.Return value comment.Actual (generic) type name of the return value.Class<?> Return value type class.SDK API method name.booleantrue if the parameter is a List type.booleantrue if the method has a business data parameter.booleantrue if the parameter type is a built-in protocol fragment.booleanbooleantrue if the return type is a built-in protocol fragment.booleanisVoid()
-
Field Details
-
actionCommandDoc
-
typeMappingDocument
-
actionSimpleName
Controller class simple name. -
actionMethodName
Action method name (PascalCase). -
methodComment
Javadoc comment of the method. -
hasBizData
public final boolean hasBizDatatrue if the method has a business data parameter. -
bizDataName
Parameter name. -
bizDataTypeClazz
Parameter type class. -
bizDataType
Mapped parameter type name. -
bizDataComment
Parameter comment. -
bizDataTypeIsList
public boolean bizDataTypeIsListtrue if the parameter is a List type. -
internalBizDataType
public boolean internalBizDataTypetrue if the parameter type is a built-in protocol fragment. -
actualTypeName
Actual (generic) type name of the parameter. -
memberCmdName
Route member constant name. -
sdkMethodName
SDK API method name. -
isVoid
public boolean isVoid -
returnComment
Return value comment. -
returnDataName
-
returnTypeClazz
Return value type class. -
returnDataActualTypeName
Actual (generic) type name of the return value. -
returnDataIsList
public boolean returnDataIsList -
returnDataTypeIsInternal
public boolean returnDataTypeIsInternaltrue if the return type is a built-in protocol fragment. -
resultMethodTypeName
SDK result getter method name. -
resultMethodListTypeName
SDK result list getter method name.
-
-
Constructor Details
-
ActionMethodDocument
public ActionMethodDocument(ActionCommandDoc actionCommandDoc, TypeMappingDocument typeMappingDocument) Create a new method document from the given command doc and type mapping.- Parameters:
actionCommandDoc- the command-level documentationtypeMappingDocument- the type mapping configuration
-
-
Method Details
-
getActionCommandDoc
-
getTypeMappingDocument
-
getActionSimpleName
Controller class simple name. -
getActionMethodName
Action method name (PascalCase). -
getMethodComment
Javadoc comment of the method. -
isHasBizData
public boolean isHasBizData()true if the method has a business data parameter. -
getBizDataName
Parameter name. -
getBizDataTypeClazz
Parameter type class. -
getBizDataType
Mapped parameter type name. -
getBizDataComment
Parameter comment. -
isBizDataTypeIsList
public boolean isBizDataTypeIsList()true if the parameter is a List type. -
isInternalBizDataType
public boolean isInternalBizDataType()true if the parameter type is a built-in protocol fragment. -
getActualTypeName
Actual (generic) type name of the parameter. -
getMemberCmdName
Route member constant name. -
getSdkMethodName
SDK API method name. -
isVoid
public boolean isVoid() -
getReturnComment
Return value comment. -
getReturnDataName
-
getReturnTypeClazz
Return value type class. -
getReturnDataActualTypeName
Actual (generic) type name of the return value. -
isReturnDataIsList
public boolean isReturnDataIsList() -
isReturnDataTypeIsInternal
public boolean isReturnDataTypeIsInternal()true if the return type is a built-in protocol fragment. -
getResultMethodTypeName
SDK result getter method name. -
getResultMethodListTypeName
SDK result list getter method name.
-