类 DefaultJavaTypeVariable<D extends JavaGenericDeclaration>

java.lang.Object
com.thoughtworks.qdox.model.impl.DefaultJavaType
com.thoughtworks.qdox.model.impl.DefaultJavaTypeVariable<D>
所有已实现的接口:
JavaAnnotatedElement, JavaClass, JavaGenericDeclaration, JavaModel, JavaType, JavaTypeVariable<D>, Serializable

public class DefaultJavaTypeVariable<D extends JavaGenericDeclaration> extends DefaultJavaType implements JavaTypeVariable<D>
Equivalent of TypeVariable
从以下版本开始:
1.10
作者:
Robert Scholte
另请参阅:
  • 构造器详细资料

    • DefaultJavaTypeVariable

      public DefaultJavaTypeVariable(String name, TypeResolver typeResolver)
  • 方法详细资料

    • getBounds

      public List<JavaType> getBounds()
      指定者:
      getBounds 在接口中 JavaTypeVariable<D extends JavaGenericDeclaration>
    • setBounds

      public void setBounds(List<JavaType> bounds)
      参数:
      bounds - the bounds to set
    • getGenericDeclaration

      public D getGenericDeclaration()
      指定者:
      getGenericDeclaration 在接口中 JavaTypeVariable<D extends JavaGenericDeclaration>
    • getFullyQualifiedName

      public String getFullyQualifiedName()
      从类复制的说明: DefaultJavaType
      Every 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 translated
       Object > java.lang.Object
       java.util.List > java.util.List
       ?  > ?
       T  > T
       anypackage.Outer.Inner > anypackage.Outer.Inner
       String[][] > java.lang.String[][]
       
      指定者:
      getFullyQualifiedName 在接口中 JavaType
      覆盖:
      getFullyQualifiedName 在类中 DefaultJavaType
      返回:
      the fully qualified name, never null
      另请参阅:
    • getGenericFullyQualifiedName

      public String getGenericFullyQualifiedName()
      从类复制的说明: DefaultJavaType
      The fully qualified name with generic information.
      指定者:
      getGenericFullyQualifiedName 在接口中 JavaType
      覆盖:
      getGenericFullyQualifiedName 在类中 DefaultJavaType
      返回:
      the generic fully qualified name
    • getCanonicalName

      public String getCanonicalName()
      从类复制的说明: DefaultJavaType
      Equivalent of (@link Class.getCanonicalName().
      指定者:
      getCanonicalName 在接口中 JavaType
      覆盖:
      getCanonicalName 在类中 DefaultJavaType
      返回:
      the canonical name of this class
    • getGenericCanonicalName

      public String getGenericCanonicalName()
      从类复制的说明: DefaultJavaType
      The canonical name with generic information.
      指定者:
      getGenericCanonicalName 在接口中 JavaType
      覆盖:
      getGenericCanonicalName 在类中 DefaultJavaType
      返回:
      the generic canonical name
    • getGenericValue

      public String getGenericValue()
      从类复制的说明: DefaultJavaType
      A java5+ representation of the class. When including all imports, you should be safe to use this method. 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>String>"
       
      指定者:
      getGenericValue 在接口中 JavaType
      覆盖:
      getGenericValue 在类中 DefaultJavaType
      返回:
      the generic name of the class as used in the source
    • getName

      public String getName()
      从类复制的说明: DefaultJavaType
      Equivalent of Class.getName().
      指定者:
      getName 在接口中 JavaClass
      指定者:
      getName 在接口中 JavaTypeVariable<D extends JavaGenericDeclaration>
      覆盖:
      getName 在类中 DefaultJavaType
      返回:
      the name of the entity (class, interface, array class, primitive type, or void) represented by this Class object, as a String.