trait If extends Term with WithCond with WithMods with Product
- Annotations
- @astClass() @leafClass()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- If
- WithMods
- WithCond
- Term
- Stat
- Tree
- Serializable
- Ast
- Adt
- InternalTree
- Product
- Equals
- AnyRef
- Any
Implicitly
- by ImplicitTree
- by XtensionTreesStat
- by XtensionTreesTerm
- by ImplicitTree
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def children: List[Tree]
- Definition Classes
- Tree
- abstract def cond: Term
- abstract def copy(cond: Term = this.cond, thenp: Term = this.thenp, elsep: Term = this.elsep, mods: List[Mod] = this.mods): If
- abstract def elsep: Term
- Annotations
- @astField()
- abstract def mods: List[Mod]
- abstract def origin: Origin
- Definition Classes
- If → InternalTree
- Annotations
- @privateField()
- 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 thenp: Term
- Annotations
- @astField()
- abstract def copy(cond: Term, thenp: Term, elsep: Term): If
- Annotations
- @deprecated
- Deprecated
4.4.0
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): (If, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def canEqual(that: Any): Boolean
- def checkFields(x: Any): Unit
- Attributes
- protected
- Definition Classes
- InternalTree
- def checkParent(x: Any): Unit
- Attributes
- protected
- Definition Classes
- InternalTree
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (If) => Boolean, msg: => Any): If
- def ensuring(cond: (If) => Boolean): If
- def ensuring(cond: Boolean, msg: => Any): If
- def ensuring(cond: Boolean): If
- 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 hashCode(): Int
- def isBlockStat: Boolean
- Implicit
- This member is added by an implicit conversion from If 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 If 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 If toXtensionTreesStat performed by method XtensionTreesStat in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesStat
- def isExtractor: Boolean
- Implicit
- This member is added by an implicit conversion from If toXtensionTreesTerm performed by method XtensionTreesTerm in scala.meta.internal.trees.
- Definition Classes
- XtensionTreesTerm
- Annotations
- @tailrec()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRefineStat: Boolean
- Implicit
- This member is added by an implicit conversion from If 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 If 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 If 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()
- def parent: Option[Tree]
- Definition Classes
- InternalTree
- 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
- 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 If toImplicitTree[If] 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:(if: ImplicitTree[If]).ancestor(level)
- Definition Classes
- ImplicitTree
- def ancestor(level: Int): Option[Tree]
- Implicit
- This member is added by an implicit conversion from If toImplicitTree[If] 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:(if: ImplicitTree[If]).ancestor(level)
- Definition Classes
- ImplicitTree
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from If toStringFormat[If] 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.
- final def tokens(dialect: Dialect): Tokens
- Definition Classes
- InternalTree
- Annotations
- @deprecated
- Deprecated
(Since version 4.9.0) dialect is ignored, use parameterless
tokens
method
- def →[B](y: B): (If, B)
- Implicit
- This member is added by an implicit conversion from If toArrowAssoc[If] 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.