类 LParameter
- java.lang.Object
-
- net.risedata.rpc.utils.LParameter
-
public class LParameter extends Object
对于字段参数的封装- 作者:
- libo 2020年8月21日
-
-
构造器概要
构造器 构造器 说明 LParameter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Class<?>[]getGeneralType()StringgetParameterName()Class<?>getParameterType()booleanisGeneral()booleanisPath()booleanisRequired()voidsetAnnotations(Annotation[] annotations)voidsetGeneral(boolean general)voidsetGeneralType(Class<?>[] generalType)voidsetParameterName(String parameterName)voidsetParameterType(Class<?> parameterType)voidsetPath(boolean isPath)voidsetRequired(boolean required)StringtoString()
-
-
-
方法详细资料
-
isPath
public boolean isPath()
- 返回:
- the isPath
-
setPath
public void setPath(boolean isPath)
- 参数:
isPath- the isPath to set
-
isRequired
public boolean isRequired()
- 返回:
- the required
-
setRequired
public void setRequired(boolean required)
- 参数:
required- the required to set
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
-
getAnnotations
public Annotation[] getAnnotations()
- 返回:
- the annotations
-
setAnnotations
public void setAnnotations(Annotation[] annotations)
- 参数:
annotations- the annotations to set
-
getParameterName
public String getParameterName()
- 返回:
- the parameterName
-
setParameterName
public void setParameterName(String parameterName)
- 参数:
parameterName- the parameterName to set
-
getParameterType
public Class<?> getParameterType()
- 返回:
- the parameterType
-
setParameterType
public void setParameterType(Class<?> parameterType)
- 参数:
parameterType- the parameterType to set
-
getGeneralType
public Class<?>[] getGeneralType()
-
setGeneralType
public void setGeneralType(Class<?>[] generalType)
-
isGeneral
public boolean isGeneral()
-
setGeneral
public void setGeneral(boolean general)
-
-