Class UnresolvedClassImpl

    • Constructor Detail

      • UnresolvedClassImpl

        public UnresolvedClassImpl​(java.lang.String packageName,
                                   java.lang.String simpleName,
                                   ElementContext ctx)
    • Method Detail

      • getQualifiedName

        public java.lang.String getQualifiedName()
        Description copied from interface: JElement

        Returns a qualified name for this abstraction. The exact format of this name depends on the particular abstraction. Please refer to the documentation for each JElement subclass for a detailed description of the qualified name formats.

        Specified by:
        getQualifiedName in interface JElement
        Overrides:
        getQualifiedName in class BuiltinClassImpl
      • getFieldDescriptor

        public java.lang.String getFieldDescriptor()
        Description copied from interface: JClass

        Returns the name of this member in the format described in section 4.3.2 of the VM spec, 'Field Descriptors.' This is the same nasty format returned by java.lang.Class.getName(), and is the format you need to use in calls to Class.forName(). For example, the ClassfileName of the class of a two-dimensional array of strings is [[Ljava.lang.String;. For details, see http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html

        Specified by:
        getFieldDescriptor in interface JClass
        Overrides:
        getFieldDescriptor in class BuiltinClassImpl
      • isAssignableFrom

        public boolean isAssignableFrom​(JClass c)
        Description copied from interface: JClass

        Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified Class parameter. It returns true if so; otherwise it returns false. If this Class object represents a primitive type, this method returns true if the specified Class parameter is exactly this Class object; otherwise it returns false.

        Specifically, this method tests whether the type represented by the specified Class parameter can be converted to the type represented by this Class object via an identity conversion or via a widening reference conversion. See The Java Language Specification, sections 5.1.1 and 5.1.4 , for details.

      • isUnresolvedType

        public boolean isUnresolvedType()
        Description copied from interface: JClass

        Returns true if a backing entity for this class could not be resolved. This will be true, for example, of the JClass which you get when requesting a method's return type when no class for that type can be found. In this case, the JClass will be have only a name - all other properties will be null/empty.

        Specified by:
        isUnresolvedType in interface JClass
        Overrides:
        isUnresolvedType in class BuiltinClassImpl