public abstract class AbstractUnit<PARAM extends AbstractParam,MODULE extends AbstractModule> extends Object implements Annotated, Comparable<AbstractUnit>
| 构造器和说明 |
|---|
AbstractUnit(Method method,
MODULE module) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
afterInit() |
protected abstract PARAM |
buildParam(Method method,
int index) |
AccessAllow |
getAccessAllow()
access control list
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations()
获取全部注解
|
DefinitionContext |
getContext() |
<T extends Annotation> |
getDeclaredAnnotation(Class<T> annotationClass)
获取某个注解
|
MODULE |
getDeclaringModule() |
String |
getDescription()
服务说明
|
String |
getFunctionName()
调用方法名
|
Type |
getGenericReturnType()
返回值泛型类型
|
abstract String |
getInvokeType()
调用方式
|
String |
getLabel()
文档化的名称
|
Method |
getMethod() |
abstract String |
getName()
服务名称
|
PARAM[] |
getParameters()
方法参数
|
Class<?> |
getReturnType()
返回值类型
|
Signable |
getSignable()
获取签名信息
|
boolean |
isDeprecated() |
protected abstract PARAM[] |
toArrays(List<PARAM> params) |
protected abstract DefinitionContext |
toContext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareToprotected void afterInit()
public MODULE getDeclaringModule()
public Method getMethod()
public abstract String getName()
public String getLabel()
public String getDescription()
public String getFunctionName()
public abstract String getInvokeType()
public Class<?> getReturnType()
public Type getGenericReturnType()
public AccessAllow getAccessAllow()
public Signable getSignable()
public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
getDeclaredAnnotation 在接口中 AnnotatedT - annotationClass - public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public Annotation[] getAnnotations()
AnnotatedgetAnnotations 在接口中 Annotatedpublic final PARAM[] getParameters()
public DefinitionContext getContext()
protected abstract DefinitionContext toContext()
public boolean isDeprecated()
Copyright © 2020. All rights reserved.