java.lang.Object
com.thoughtworks.qdox.model.impl.AbstractJavaModel
com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.impl.AbstractJavaEntity
com.thoughtworks.qdox.model.impl.AbstractInheritableJavaEntity
com.thoughtworks.qdox.model.impl.DefaultJavaExecutable
- 所有已实现的接口:
JavaAnnotatedElement,JavaExecutable,JavaGenericDeclaration,JavaMember,JavaModel,Serializable
- 直接已知子类:
DefaultJavaConstructor,DefaultJavaMethod
public abstract class DefaultJavaExecutable
extends AbstractInheritableJavaEntity
implements JavaExecutable
The BaseMethod contains all methods used by both JavaMethod and JavaConstructor
- 作者:
- Robert Scholte
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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 typesprotected JavaTypeprotected StringgetSignature(boolean withModifiers, boolean isDeclaration) Get the original source code of the body of this method.getTagsByName(String name, boolean inherited) booleanisPublic()Equivalent ofModifier.isPublic(int)booleanEquivalent ofExecutable.isVarArgs()voidsetExceptions(List<JavaClass> exceptions) voidsetParameters(List<JavaParameter> javaParameters) voidsetSourceCode(String sourceCode) protected booleansignatureMatches(List<JavaType> parameterTypes, boolean varArgs) 从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractInheritableJavaEntity
getTagByName从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractJavaEntity
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaExecutable
getDeclaringClass从接口继承的方法 com.thoughtworks.qdox.model.JavaGenericDeclaration
getTypeParameters从接口继承的方法 com.thoughtworks.qdox.model.JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
构造器详细资料
-
DefaultJavaExecutable
public DefaultJavaExecutable()
-
-
方法详细资料
-
getParameters
Equivalent ofExecutable.getParameterTypes(), where a JavaParameter also contains the original name if available.- 指定者:
getParameters在接口中JavaExecutable- 返回:
- a list of JavaParameters, never
null
-
getParameterByName
- 指定者:
getParameterByName在接口中JavaExecutable- 参数:
name- the name of the parameter- 返回:
- the
JavaParametermatching the name, otherwisenull
-
getExceptions
Equivalent ofExecutable.getExceptionTypes()- 指定者:
getExceptions在接口中JavaExecutable- 返回:
- a list of Exceptions, never
null
-
getExceptionTypes
- 指定者:
getExceptionTypes在接口中JavaExecutable
-
isVarArgs
public boolean isVarArgs()Equivalent ofExecutable.isVarArgs()- 指定者:
isVarArgs在接口中JavaExecutable- 返回:
trueif the final parameter is a varArg, otherwisefalse
-
setParameters
-
setExceptions
-
signatureMatches
-
isPublic
public boolean isPublic()Equivalent ofModifier.isPublic(int)- 指定者:
isPublic在接口中JavaMember- 覆盖:
isPublic在类中AbstractJavaEntity- 返回:
trueif entity is public, otherwisefalse
-
getTagsByName
-
getParameterTypes
Equivalent ofExecutable.getParameterTypes()- 指定者:
getParameterTypes在接口中JavaExecutable- 返回:
- a list of JavaParameters, never
null
-
getParameterTypes
If a class inherits this method from a generic class or interface, you can use this method to get the resolved parameter types- 指定者:
getParameterTypes在接口中JavaExecutable- 参数:
resolve-trueif the resolved types should be returned, otherwisefalse- 返回:
- the parameter types
-
getSourceCode
Get the original source code of the body of this method.- 指定者:
getSourceCode在接口中JavaExecutable- 返回:
- Code as string.
-
setSourceCode
-
getCallSignature
- 指定者:
getCallSignature在接口中JavaExecutable
-
getReturns
-
getSignature
- 从以下版本开始:
- 1.3
-