- 所有超级接口:
JavaAnnotatedElement,JavaModel,JavaType,Serializable
- 所有已知实现类:
DefaultJavaParameter
JavaParameter is an extended version of JavaClass and doesn't exist in the java api.
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明Equivalent of (@linkClass.getCanonicalName().The declaring class of the declaring method of this parameter.Returns the declaring method or constructor of this parameterEvery primitive type, named package, top level class, and top level interface has a fully qualified name: The fully qualified name of a primitive type is the keyword for that primitive type, namely byte, short, char, int, long, float, double, or boolean. The fully qualified name of a named package that is not a subpackage of a named package is its simple name. The fully qualified name of a named package that is a subpackage of another named package consists of the fully qualified name of the containing package, followed by ".", followed by the simple (member) name of the subpackage. The fully qualified name of a top level class or top level interface that is declared in an unnamed package is the simple name of the class or interface. The fully qualified name of a top level class or top level interface that is declared in a named package consists of the fully qualified name of the package, followed by ".", followed by the simple name of the class or interface. Each member class, member interface, and array type may have a fully qualified name: A member class or member interface M of another class or interface C has a fully qualified name if and only if C has a fully qualified name. In that case, the fully qualified name of M consists of the fully qualified name of C, followed by ".", followed by the simple name of M. An array type has a fully qualified name if and only if its element type has a fully qualified name. In that case, the fully qualified name of an array type consists of the fully qualified name of the component type of the array type followed by "[]". Some examples how names will be translatedgetName()getType()getValue()If there's a reference to this class, use the value used in the code.booleanIs this a Java 5 var args type specified using three dots. e.g.从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber从接口继承的方法 com.thoughtworks.qdox.model.JavaType
getBinaryName, getGenericCanonicalName, getGenericFullyQualifiedName, getGenericValue, toGenericString
-
方法详细资料
-
getName
String getName()- 返回:
- the name of the parameter
-
getType
JavaType getType()- 返回:
- the type of this parameter
-
getJavaClass
JavaClass getJavaClass() -
getExecutable
JavaExecutable getExecutable()Returns the declaring method or constructor of this parameter- 返回:
- the declaring method or constructor
-
getDeclaringClass
JavaClass getDeclaringClass()The declaring class of the declaring method of this parameter.- 返回:
- the declaring class of the declaring method
-
isVarArgs
boolean isVarArgs()Is this a Java 5 var args type specified using three dots. e.g.void doStuff(Object... thing)- 返回:
trueif this parameter is a varArg, otherwisefalse- 从以下版本开始:
- 1.6
-
getValue
String getValue()从接口复制的说明:JavaTypeIf there's a reference to this class, use the value used in the code. Otherwise return the simple name. When including all imports, you should be safe to use this method. This won't return generics, so it's java1.4 safe. Examples:private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private List>String> aList; // getValue() will return "List"
-
getFullyQualifiedName
String getFullyQualifiedName()从接口复制的说明:JavaTypeEvery primitive type, named package, top level class, and top level interface has a fully qualified name:
Some examples how names will be translated- The fully qualified name of a primitive type is the keyword for that primitive type, namely byte, short, char, int, long, float, double, or boolean.
- The fully qualified name of a named package that is not a subpackage of a named package is its simple name.
- The fully qualified name of a named package that is a subpackage of another named package consists of the fully qualified name of the containing package, followed by ".", followed by the simple (member) name of the subpackage.
- The fully qualified name of a top level class or top level interface that is declared in an unnamed package is the simple name of the class or interface.
- The fully qualified name of a top level class or top level interface that is declared in a named package consists of the fully qualified name of the package, followed by ".", followed by the simple name of the class or interface.
- A member class or member interface M of another class or interface C has a fully qualified name if and only if C has a fully qualified name.
- In that case, the fully qualified name of M consists of the fully qualified name of C, followed by ".", followed by the simple name of M.
- An array type has a fully qualified name if and only if its element type has a fully qualified name.
- In that case, the fully qualified name of an array type consists of the fully qualified name of the component type of the array type followed by "[]".
Object > java.lang.Object java.util.List > java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer.Inner String[][] > java.lang.String[][]
- 指定者:
getFullyQualifiedName在接口中JavaType- 返回:
- the FQN of the type, never
null - 另请参阅:
-
getCanonicalName
String getCanonicalName()从接口复制的说明:JavaTypeEquivalent of (@linkClass.getCanonicalName().- 指定者:
getCanonicalName在接口中JavaType- 返回:
- the canonical name of the type, never
null - 从以下版本开始:
- 2.0
-
getResolvedValue
String getResolvedValue()- 返回:
- the resolved value of the type
- 从以下版本开始:
- 1.10
-
getResolvedGenericValue
String getResolvedGenericValue()- 返回:
- the resolved generic value of the type, never
null - 从以下版本开始:
- 2.0
-
getResolvedFullyQualifiedName
String getResolvedFullyQualifiedName()- 返回:
- the resolved FQN, never
null - 从以下版本开始:
- 2.0
-
getResolvedGenericFullyQualifiedName
String getResolvedGenericFullyQualifiedName()- 返回:
- the resolved generic FQN, never
null - 从以下版本开始:
- 2.0
-