trait TypeOps extends AnyRef
This layer adds factories that construct scala.reflect
Types in the shapes that TASTy expects.
Additionally provides operations to select a type from a type, or a type from a type with an additional prefix,
using a TastyName
.
- Self Type
- TastyUniverse
- Source
- TypeOps.scala
- Alphabetic
- By Inheritance
- TypeOps
- AnyRef
- Any
- by SafeEq
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class BaseTastyCompleter extends TastyCore.SymbolTable.LazyType with TastyUniverse.TastyRepr with TastyCore.SymbolTable.FlagAgnosticCompleter
- case class ContextFunctionType(arity: Int) extends TastyUniverse.Type with Product with Serializable
- case class ErasedContextFunctionType(arity: Int) extends TastyUniverse.Type with Product with Serializable
- case class ErasedFunctionType(arity: Int) extends TastyUniverse.Type with Product with Serializable
- case class FunctionXXLType(arity: Int) extends TastyUniverse.Type with Product with Serializable
- abstract class LambdaFactory[N <: TastyName] extends AnyRef
- final class LambdaPolyType extends TastyCore.SymbolTable.PolyType
- abstract class TastyCompleter extends TastyUniverse.BaseTastyCompleter
- sealed trait TastyRepr extends TastyCore.SymbolTable.Type
- abstract class TermLambdaFactory extends TastyUniverse.LambdaFactory[TastyName]
- abstract class TypeLambdaFactory extends TastyUniverse.LambdaFactory[TypeName]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def !==(u: TypeOps): Boolean
- Implicit
- This member is added by an implicit conversion from TypeOps toSafeEq[TypeOps] performed by method SafeEq in scala.tools.nsc.tasty.
- Definition Classes
- SafeEq
- Annotations
- @inline()
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (TypeOps, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ===(u: TypeOps): Boolean
- Implicit
- This member is added by an implicit conversion from TypeOps toSafeEq[TypeOps] performed by method SafeEq in scala.tools.nsc.tasty.
- Definition Classes
- SafeEq
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def bigFnIsUnsupported[T](tpeStr: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def ctxFnIsUnsupported[T](tpeStr: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- def effectiveResultType(sym: TastyUniverse.Symbol, givenTp: TastyUniverse.Type): TastyUniverse.Type
The given type, unless
sym
is a constructor, in which case the type of the constructed instance is returned - def emptyTypeBounds: TastyUniverse.Type
- def ensuring(cond: (TypeOps) => Boolean, msg: => Any): TypeOps
- def ensuring(cond: (TypeOps) => Boolean): TypeOps
- def ensuring(cond: Boolean, msg: => Any): TypeOps
- def ensuring(cond: Boolean): TypeOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def erasedCtxFnIsUnsupported[T](tpeStr: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- final def erasedFnIsUnsupported[T](tpeStr: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- final def erasedRefinementIsUnsupported[T](implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fnIsUnsupported[T](kind: (String) => String, tpeStr: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- def fnResult(fn: TastyUniverse.Type): TastyUniverse.Type
- final def genTupleIsUnsupported[T](name: String)(implicit ctx: TastyUniverse.Context): T
*:
erases to either TupleXXL or Product*:
erases to either TupleXXL or Product- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intersectionParts(tpe: TastyUniverse.Type): List[TastyUniverse.Type]
- final def isConstantType(tpe: TastyUniverse.Type): Boolean
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isTypeType(tpe: TastyUniverse.Type): Boolean
- Annotations
- @inline()
- def lzyShow(tpe: TastyUniverse.Type): String
- final def matchTypeIsUnsupported[T](implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- final def mergeableParams(t: TastyUniverse.Type, u: TastyUniverse.Type): Boolean
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def polyFuncIsUnsupported[T](tpe: TastyUniverse.Type)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- def safeClassType(tpe: TastyUniverse.Type): TastyUniverse.Type
return a type that can be used as a class type, e.g.
return a type that can be used as a class type, e.g. in parents of another class, or as the type of new
- def showType(tpe: TastyUniverse.Type, wrap: Boolean = true): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tyconResult(tycon: TastyUniverse.Type, args: List[TastyUniverse.Type]): TastyUniverse.Type
- final def unionIsUnsupported[T](implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object AndTpe extends TastyUniverse.Type with Product with Serializable
A synthetic type
scala.&
which accepts two type arguments, representing an intersection typeA synthetic type
scala.&
which accepts two type arguments, representing an intersection type- See also
https://github.com/lampepfl/dotty/issues/7688
- object HKTypeLambda extends TastyUniverse.TypeLambdaFactory with java.io.Serializable
- object LambdaFactory
- object LambdaPolyType extends java.io.Serializable
- object MethodTermLambda extends TastyUniverse.TermLambdaFactory with java.io.Serializable
- object PolyTypeLambda extends TastyUniverse.TypeLambdaFactory with java.io.Serializable
- object defn
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TypeOps toStringFormat[TypeOps] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (TypeOps, B)
- Implicit
- This member is added by an implicit conversion from TypeOps toArrowAssoc[TypeOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.