Class ConstantRef

    • Constructor Detail

      • ConstantRef

        ConstantRef​(ConstantClass constClass,
                    ConstantNameAndType nameAndType)
        Create a new instance.
        Parameters:
        constClass - the class description
        nameAndType - the name and type description
    • Method Detail

      • getName

        public java.lang.String getName()
        The simple name without package
        Specified by:
        getName in interface Member
        Returns:
        the name
      • getClassName

        public java.lang.String getClassName()
        The class name of the declaring class like "java/lang/Object".
        Specified by:
        getClassName in interface Member
        Returns:
        the class name
      • getType

        public java.lang.String getType()
        Get the type of the method. For example "(Ljava.lang.String;)I"
        Specified by:
        getType in interface Member
        Returns:
        the type