Class MCType

  • All Implemented Interfaces:
    IMCType

    public class MCType
    extends Object
    implements IMCType
    Base implementation of the IMCType interface.
    • Method Detail

      • getPackage

        public IMCPackage getPackage()
        Description copied from interface: IMCType
        Returns the package this type was declared in.
        Specified by:
        getPackage in interface IMCType
        Returns:
        declaring package
      • getTypeName

        public final String getTypeName()
        Description copied from interface: IMCType
        Returns the name of the type, without the package.

        Examples are "String" and "Tread$TreadState".

        Specified by:
        getTypeName in interface IMCType
        Returns:
        the type name
      • getFullName

        public final String getFullName()
        Description copied from interface: IMCType
        Java type name according to The Java Language Specification, Section 13.1.

        An example is "java.lang.String".

        Specified by:
        getFullName in interface IMCType
        Returns:
        the fully qualified name (both package and type name)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object