trait Type extends Decl with TypeDef with Product
- Annotations
- @astClass() @leafClass()
- Alphabetic
- By Inheritance
- Type
- TypeDef
- WithTParamClause
- WithMods
- Type
- Member
- Decl
- Stat
- Tree
- Serializable
- Ast
- Adt
- InternalTree
- Product
- Equals
- AnyRef
- Any
- by ImplicitTree
- by XtensionTreesStat
- by ImplicitTree
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def begComment: Option[Comments]
- Definition Classes
- Type → InternalTree
- Annotations
- @privateField()
- abstract def bounds: Bounds
- abstract def copy(mods: List[Mod], name: Type.Name, tparamClause: ParamClause, bounds: Bounds): Type
- abstract def copy(mods: List[Mod] = this.mods, name: Type.Name = this.name, tparams: List[Param] = this.tparams, bounds: Bounds = this.bounds): Type
- abstract def copyWithComments(mods: List[Mod], name: Type.Name, tparamClause: ParamClause, bounds: Bounds, begComment: Option[Comments], endComment: Option[Comments]): Type
- abstract def copyWithComments(mods: List[Mod] = this.mods, name: Type.Name = this.name, tparams: List[Param] = this.tparams, bounds: Bounds = this.bounds, begComment: Option[Comments] = this.begComment, endComment: Option[Comments] = this.endComment): Type
- abstract def endComment: Option[Comments]
- Definition Classes
- Type → InternalTree
- Annotations
- @privateField()
- abstract def foreachChild(f: (Tree) => Unit): Unit
Applies
fto each direct child tree, in field order.Applies
fto each direct child tree, in field order. Implemented per@astnode (allocation-free);children/childrenCountderive from it.- Definition Classes
- InternalTree
- abstract def mods: List[Mod]
- abstract def name: Type.Name
- abstract def origin: Origin
- Definition Classes
- Type → InternalTree
- Annotations
- @privateField()
- abstract def parent: Option[Tree]
- Definition Classes
- InternalTree
- abstract def productArity: Int
- Definition Classes
- Product
- abstract def productElement(n: Int): Any
- Definition Classes
- Product
- abstract def productFields: List[String]
- Definition Classes
- InternalTree
- abstract def tparamClause: ParamClause
- Definition Classes
- Type → TypeDef → WithTParamClause
- Annotations
- @astField()
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Type, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def begOffset: Int
- Definition Classes
- InternalTree
- final def canEqual(that: Any): Boolean
- def checkField(field: Tree, requirement: Boolean): Unit
- Attributes
- protected
- Definition Classes
- InternalTree
- def checkFields(f: => Boolean): Unit
- Attributes
- protected
- Definition Classes
- InternalTree
- def children: List[Tree]
- Definition Classes
- InternalTree
- def childrenCount: Int
Number of direct child trees; overridden per
@astnode to avoid thechildrenbuilder.Number of direct child trees; overridden per
@astnode to avoid thechildrenbuilder.- Definition Classes
- InternalTree
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def endOffset: Int
- Definition Classes
- InternalTree
- def ensuring(cond: (Type) => Boolean, msg: => Any): Type
- def ensuring(cond: (Type) => Boolean): Type
- def ensuring(cond: Boolean, msg: => Any): Type
- def ensuring(cond: Boolean): Type
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def hasComments: Boolean
- Definition Classes
- InternalTree
- final def hashCode(): Int
- def isBlockStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- def isEarlyStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- def isExistentialStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isNameAnonymous: Boolean
- Definition Classes
- Member
- def isRefineStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- def isTemplateStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- def isTopLevelStat: Boolean
- Implicit
- This member is added by an implicit conversion from Type toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- 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 originalPrototype(): Tree
- Definition Classes
- InternalTree
- Annotations
- @tailrec()
- def pos: Position
- Definition Classes
- InternalTree
- def printSyntaxFor(dialect: Dialect): String
- Definition Classes
- InternalTree
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def prototype: Option[Tree]
- Definition Classes
- InternalTree
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text: String
- Definition Classes
- InternalTree
- final def toString(): String
- def tokenizeFor(dialect: Dialect): Tokens
- Definition Classes
- InternalTree
- def tokens: Tokens
- Definition Classes
- InternalTree
- 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()
Shadowed Implicit Value Members
- def ancestor(level: Int): Option[Tree]
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestor(level)
- Definition Classes
- ImplicitTree
- def ancestor(level: Int): Option[Tree]
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestor(level)
- Definition Classes
- ImplicitTree
- def ancestorOrNoTree(level: Int): Tree
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestorOrNoTree(level)
- Definition Classes
- ImplicitTree
- def ancestorOrNoTree(level: Int): Tree
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestorOrNoTree(level)
- Definition Classes
- ImplicitTree
- def ancestorOrNull(level: Int): Tree
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestorOrNull(level)
- Definition Classes
- ImplicitTree
- def ancestorOrNull(level: Int): Tree
- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).ancestorOrNull(level)
- Definition Classes
- ImplicitTree
- def parentOrNoTree: Tree
The parent
Tree, or the NoTree sentinel if there is none; nevernull.The parent
Tree, or the NoTree sentinel if there is none; nevernull. SinceNoTree.parentOrNoTree eq NoTree, walking a chain needs nonullchecks and terminates at theNoTreefixed point. Unlike parentOrNull it does not guard anullreceiver: it never yieldsnull, so a chain never calls it on one — do not call it on a literalnull.- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).parentOrNoTree
- Definition Classes
- ImplicitTree
- def parentOrNoTree: Tree
The parent
Tree, or the NoTree sentinel if there is none; nevernull.The parent
Tree, or the NoTree sentinel if there is none; nevernull. SinceNoTree.parentOrNoTree eq NoTree, walking a chain needs nonullchecks and terminates at theNoTreefixed point. Unlike parentOrNull it does not guard anullreceiver: it never yieldsnull, so a chain never calls it on one — do not call it on a literalnull.- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).parentOrNoTree
- Definition Classes
- ImplicitTree
- def parentOrNull: Tree
The parent
Tree, ornullif there is none (alsonullfor anullreceiver).The parent
Tree, ornullif there is none (alsonullfor anullreceiver).- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).parentOrNull
- Definition Classes
- ImplicitTree
- def parentOrNull: Tree
The parent
Tree, ornullif there is none (alsonullfor anullreceiver).The parent
Tree, ornullif there is none (alsonullfor anullreceiver).- Implicit
- This member is added by an implicit conversion from Type toImplicitTree[Type] performed by method ImplicitTree in scala.meta.Tree.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(type: ImplicitTree[Type]).parentOrNull
- Definition Classes
- ImplicitTree
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Type toStringFormat[Type] 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,formattedresolves to the new method in String which has reversed parameters.
- final def tparams: List[Param]
- Annotations
- @deprecated @replacedField("4.6.0", scala.meta.internal.trees.Metadata.replacedField.<init>$default$2)
- Deprecated
4.6.0
- def →[B](y: B): (Type, B)
- Implicit
- This member is added by an implicit conversion from Type toArrowAssoc[Type] 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.