dotty.tools.dotc.core

Signature

Related Docs: object Signature | package core

case class Signature(paramsSig: List[TypeName], resSig: TypeName) extends Product with Serializable

The signature of a denotation. Overloaded denotations with the same name are distinguished by their signatures. A signature of a method (of type PolyType,MethodType, or ExprType) is composed of a list of signature names, one for each parameter type, plus a signature for the result type. Methods are uncurried before taking their signatures. The signature name of a type is the fully qualified name of the type symbol of the type's erasure.

For instance a definition

def f(x: Int)(y: List[String]): String

would have signature

Signature( List("scala.Int".toTypeName, "scala.collection.immutable.List".toTypeName), "scala.String".toTypeName)

The signatures of non-method types are always NotAMethod.

There are three kinds of "missing" parts of signatures:

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Signature
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Signature(paramsSig: List[TypeName], resSig: TypeName)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def consistentParams(that: Signature): Boolean

    Does this signature coincide with that signature on their parameter parts? This is the case if all parameter names are _consistent_, i.e.

    Does this signature coincide with that signature on their parameter parts? This is the case if all parameter names are _consistent_, i.e. they are either equal or on of them is tpnme.Uninstantiated.

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  11. def isUnderDefined(implicit ctx: Context): Boolean

    A signature is under-defined if its paramsSig part contains at least one tpnme.Uninstantiated.

    A signature is under-defined if its paramsSig part contains at least one tpnme.Uninstantiated. Under-defined signatures arise when taking a signature of a type that still contains uninstantiated type variables. They are eliminated by fixSignature in PostTyper.

  12. final def matchDegree(that: Signature)(implicit ctx: Context): MatchDegree

    The degree to which this signature matches that.

    The degree to which this signature matches that. If parameter names are consistent and result types names match (i.e. they are the same or one is a wildcard), the result is FullMatch. If only the parameter names are consistent, the result is ParamMatch before erasure and NoMatch otherwise. If the parameters are inconsistent, the result is always NoMatch.

  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. val paramsSig: List[TypeName]

  17. def prepend(params: List[Type], isJava: Boolean)(implicit ctx: Context): Signature

    Construct a signature by prepending the signature names of the given params to the parameter part of this signature.

  18. val resSig: TypeName

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped