Class SignatureAttribute.ClassType

    • Constructor Detail

      • ClassType

        public ClassType​(java.lang.String className,
                         SignatureAttribute.TypeArgument[] args)
        Constructs a ClassType. It represents the name of a non-nested class.
        Parameters:
        className - a fully qualified class name.
        args - type arguments or null.
      • ClassType

        public ClassType​(java.lang.String className)
        Constructs a ClassType. It represents the name of a non-nested class.
        Parameters:
        className - a fully qualified class name.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the class name.
      • getTypeArguments

        public SignatureAttribute.TypeArgument[] getTypeArguments()
        Returns the type arguments.
        Returns:
        null if no type arguments are given to this class.
      • getDeclaringClass

        public SignatureAttribute.ClassType getDeclaringClass()
        If this class is a member of another class, returns the class in which this class is declared.
        Returns:
        null if this class is not a member of another class.
      • toString

        public java.lang.String toString()
        Returns the string representation.
        Overrides:
        toString in class java.lang.Object
      • jvmTypeName

        public java.lang.String jvmTypeName()
        Returns the type name in the JVM internal style. For example, if the type is a nested class foo.Bar.Baz, then foo.Bar$Baz is returned.
        Overrides:
        jvmTypeName in class SignatureAttribute.Type