Class DefaultJavaTypeVariable<D extends JavaGenericDeclaration>

    • Constructor Detail

      • DefaultJavaTypeVariable

        public DefaultJavaTypeVariable​(java.lang.String name,
                                       TypeResolver typeResolver)
    • Method Detail

      • setBounds

        public void setBounds​(java.util.List<JavaType> bounds)
        Parameters:
        bounds - the bounds to set
      • getFullyQualifiedName

        public java.lang.String getFullyQualifiedName()
        Description copied from class: 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[][]
         
        Specified by:
        getFullyQualifiedName in interface JavaType
        Overrides:
        getFullyQualifiedName in class DefaultJavaType
        Returns:
        the fully qualified name, never null
        See Also:
        JavaClass.getComponentType(), JavaType.getBinaryName(), https://docs.oracle.com/javase/specs/jls/se8/html/jls-6.html#jls-6.7
      • getGenericValue

        public java.lang.String getGenericValue()
        Description copied from class: 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>"
         
        Specified by:
        getGenericValue in interface JavaType
        Overrides:
        getGenericValue in class DefaultJavaType
        Returns:
        the generic name of the class as used in the source