Class scala.reflect.api.Trees.TemplateExtractor
abstract class TemplateExtractor extends AnyRef
Instance Constructors
new TemplateExtractor()
Concrete Value Members
final def !=(arg0: Any): Boolean
final def ##(): Int
def +(other: String): String
def ->[B](y: B): (, B)
final def ==(arg0: Any): Boolean
final def asInstanceOf[T0]: T0
def clone(): AnyRef
def ensuring(cond: () => Boolean, msg: => Any):
def ensuring(cond: () => Boolean):
def ensuring(cond: Boolean, msg: => Any):
def ensuring(cond: Boolean):
final def eq(arg0: AnyRef): Boolean
def equals(arg0: AnyRef): Boolean
def finalize(): Unit
final def getClass(): Class[_ <: AnyRef]
def hashCode(): Int
final def isInstanceOf[T0]: Boolean
final def ne(arg0: AnyRef): Boolean
final def notify(): Unit
final def notifyAll(): Unit
final def synchronized[T0](arg0: => T0): T0
def toString(): String
final def wait(): Unit
final def wait(arg0: Long, arg1: Int): Unit
final def wait(arg0: Long): Unit
An extractor class to create and pattern match with syntax
Template(parents, self, body)
. This AST node corresponds to the following Scala code:extends
parents { self => body }In case when the self-type annotation is missing, it is represented as an empty value definition with nme.WILDCARD as name and NoType as type.
The symbol of a template is a local dummy. @see Symbol.newLocalDummy The owner of the local dummy is the enclosing trait or class. The local dummy is itself the owner of any local blocks. For example:
class C { def foo { // owner is C def bar // owner is local dummy } }