- 所有已知子接口:
JavaConstructor,JavaMethod
A shared interface for the common functionality of Method and Constructor.
- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
- 另请参阅:
-
方法概要
修饰符和类型方法说明Equivalent ofMember.getDeclaringClass()Equivalent ofExecutable.getExceptionTypes()getParameterByName(String name) Equivalent ofExecutable.getParameterTypes(), where a JavaParameter also contains the original name if available.Equivalent ofExecutable.getParameterTypes()getParameterTypes(boolean resolve) If a class inherits this method from a generic class or interface, you can use this method to get the resolved parameter typesGet the original source code of the body of this method.booleanEquivalent ofExecutable.isVarArgs()从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaGenericDeclaration
getTypeParameters从接口继承的方法 com.thoughtworks.qdox.model.JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
方法详细资料
-
getDeclaringClass
JavaClass getDeclaringClass()从接口复制的说明:JavaMemberEquivalent ofMember.getDeclaringClass()- 指定者:
getDeclaringClass在接口中JavaMember- 返回:
- the declaring class
-
getExceptions
Equivalent ofExecutable.getExceptionTypes()- 返回:
- a list of Exceptions, never
null
-
getExceptionTypes
-
getParameterByName
- 参数:
name- the name of the parameter- 返回:
- the
JavaParametermatching the name, otherwisenull
-
getParameters
List<JavaParameter> getParameters()Equivalent ofExecutable.getParameterTypes(), where a JavaParameter also contains the original name if available.- 返回:
- a list of JavaParameters, never
null
-
getParameterTypes
Equivalent ofExecutable.getParameterTypes()- 返回:
- a list of JavaParameters, never
null - 从以下版本开始:
- 1.12
-
getParameterTypes
If a class inherits this method from a generic class or interface, you can use this method to get the resolved parameter types- 参数:
resolve-trueif the resolved types should be returned, otherwisefalse- 返回:
- the parameter types
- 从以下版本开始:
- 1.12
-
getSourceCode
String getSourceCode()Get the original source code of the body of this method.- 返回:
- Code as string.
-
isVarArgs
boolean isVarArgs()Equivalent ofExecutable.isVarArgs()- 返回:
trueif the final parameter is a varArg, otherwisefalse
-
getCallSignature
String getCallSignature()
-