trait Trees extends api.Trees
- Alphabetic
- By Inheritance
- Trees
- Trees
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
AlternativeApi extends Universe.TermTreeApi
The API that all alternatives support
The API that all alternatives support
- Definition Classes
- Trees
-
abstract
class
AlternativeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Alternative(trees)
.An extractor class to create and pattern match with syntax
Alternative(trees)
. This AST node corresponds to the following Scala code:pat1 | ... | patn
- Definition Classes
- Trees
-
trait
AnnotatedApi extends Universe.TreeApi
The API that all annotateds support
The API that all annotateds support
- Definition Classes
- Trees
-
abstract
class
AnnotatedExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Annotated(annot, arg)
.An extractor class to create and pattern match with syntax
Annotated(annot, arg)
. This AST node corresponds to the following Scala code:arg @annot // for types arg: @annot // for exprs
- Definition Classes
- Trees
-
trait
AppliedTypeTreeApi extends Universe.TypTreeApi
The API that all applied type trees support
The API that all applied type trees support
- Definition Classes
- Trees
-
abstract
class
AppliedTypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
AppliedTypeTree(tpt, args)
.An extractor class to create and pattern match with syntax
AppliedTypeTree(tpt, args)
. This AST node corresponds to the following Scala code:tpt[args]
Should only be used with
tpt
nodes which are types, i.e. which haveisType
returningtrue
. OtherwiseTypeApply
should be used instead.List[Int] as in
val x: List[Int] = ???
// represented as AppliedTypeTree(Ident(<List>), List(TypeTree(<Int>)))def foo[T] = ??? foo[Int] // represented as TypeApply(Ident(<foo>), List(TypeTree(<Int>)))
- Definition Classes
- Trees
-
trait
ApplyApi extends Universe.GenericApplyApi
The API that all applies support
The API that all applies support
- Definition Classes
- Trees
-
abstract
class
ApplyExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Apply(fun, args)
.An extractor class to create and pattern match with syntax
Apply(fun, args)
. This AST node corresponds to the following Scala code:fun(args)
For instance:
fun[targs](args)
Is expressed as:
Apply(TypeApply(fun, targs), args)
- Definition Classes
- Trees
-
trait
AssignApi extends Universe.TermTreeApi
The API that all assigns support
The API that all assigns support
- Definition Classes
- Trees
-
abstract
class
AssignExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Assign(lhs, rhs)
.An extractor class to create and pattern match with syntax
Assign(lhs, rhs)
. This AST node corresponds to the following Scala code:lhs = rhs
- Definition Classes
- Trees
-
trait
AssignOrNamedArgApi extends Universe.TermTreeApi
The API that all assigns support
The API that all assigns support
- Definition Classes
- Trees
-
abstract
class
AssignOrNamedArgExtractor extends AnyRef
An extractor class to create and pattern match with syntax
AssignOrNamedArg(lhs, rhs)
.An extractor class to create and pattern match with syntax
AssignOrNamedArg(lhs, rhs)
. This AST node corresponds to the following Scala code:m.f(lhs = rhs)
@annotation(lhs = rhs)
- Definition Classes
- Trees
-
trait
BindApi extends Universe.DefTreeApi
The API that all binds support
The API that all binds support
- Definition Classes
- Trees
-
abstract
class
BindExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Bind(name, body)
.An extractor class to create and pattern match with syntax
Bind(name, body)
. This AST node corresponds to the following Scala code:pat*
- Definition Classes
- Trees
-
trait
BlockApi extends Universe.TermTreeApi
The API that all blocks support
The API that all blocks support
- Definition Classes
- Trees
-
abstract
class
BlockExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Block(stats, expr)
.An extractor class to create and pattern match with syntax
Block(stats, expr)
. This AST node corresponds to the following Scala code:{ stats; expr }
If the block is empty, the
expr
is set toLiteral(Constant(()))
.- Definition Classes
- Trees
-
trait
CaseDefApi extends Universe.TreeApi
The API that all case defs support
The API that all case defs support
- Definition Classes
- Trees
-
abstract
class
CaseDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
CaseDef(pat, guard, body)
.An extractor class to create and pattern match with syntax
CaseDef(pat, guard, body)
. This AST node corresponds to the following Scala code:case
patif
guard => bodyIf the guard is not present, the
guard
is set toEmptyTree
. If the body is not specified, thebody
is set toLiteral(Constant(()))
- Definition Classes
- Trees
-
trait
ClassDefApi extends Universe.ImplDefApi
The API that all class defs support
The API that all class defs support
- Definition Classes
- Trees
-
abstract
class
ClassDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ClassDef(mods, name, tparams, impl)
.An extractor class to create and pattern match with syntax
ClassDef(mods, name, tparams, impl)
. This AST node corresponds to the following Scala code:mods
class
name [tparams] implWhere impl stands for:
extends
parents { defs }- Definition Classes
- Trees
-
trait
CompoundTypeTreeApi extends Universe.TypTreeApi
The API that all compound type trees support
The API that all compound type trees support
- Definition Classes
- Trees
-
abstract
class
CompoundTypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
CompoundTypeTree(templ)
.An extractor class to create and pattern match with syntax
CompoundTypeTree(templ)
. This AST node corresponds to the following Scala code:parent1 with ... with parentN { refinement }
- Definition Classes
- Trees
-
trait
DefDefApi extends Universe.ValOrDefDefApi
The API that all def defs support
The API that all def defs support
- Definition Classes
- Trees
-
abstract
class
DefDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
DefDef(mods, name, tparams, vparamss, tpt, rhs)
.An extractor class to create and pattern match with syntax
DefDef(mods, name, tparams, vparamss, tpt, rhs)
. This AST node corresponds to the following Scala code:mods
def
name[tparams](vparams_1)...(vparams_n): tpt = rhsIf the return type is not specified explicitly (i.e. is meant to be inferred), this is expressed by having
tpt
set toTypeTree()
(but not to anEmptyTree
!).- Definition Classes
- Trees
-
trait
DefTreeApi extends Universe.SymTreeApi with Universe.NameTreeApi
The API that all def trees support
The API that all def trees support
- Definition Classes
- Trees
-
trait
ExistentialTypeTreeApi extends Universe.TypTreeApi
The API that all existential type trees support
The API that all existential type trees support
- Definition Classes
- Trees
-
abstract
class
ExistentialTypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ExistentialTypeTree(tpt, whereClauses)
.An extractor class to create and pattern match with syntax
ExistentialTypeTree(tpt, whereClauses)
. This AST node corresponds to the following Scala code:tpt forSome { whereClauses }
- Definition Classes
- Trees
-
trait
FunctionApi extends Universe.TermTreeApi with Universe.SymTreeApi
The API that all functions support
The API that all functions support
- Definition Classes
- Trees
-
abstract
class
FunctionExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Function(vparams, body)
.An extractor class to create and pattern match with syntax
Function(vparams, body)
. This AST node corresponds to the following Scala code:vparams => body
The symbol of a Function is a synthetic TermSymbol. It is the owner of the function's parameters.
- Definition Classes
- Trees
-
trait
GenericApplyApi extends Universe.TermTreeApi
The API that all applies support
The API that all applies support
- Definition Classes
- Trees
-
trait
IdentApi extends Universe.RefTreeApi
The API that all idents support
The API that all idents support
- Definition Classes
- Trees
-
abstract
class
IdentExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Ident(qual, name)
.An extractor class to create and pattern match with syntax
Ident(qual, name)
. This AST node corresponds to the following Scala code:name
Type checker converts idents that refer to enclosing fields or methods to selects. For example, name ==> this.name
- Definition Classes
- Trees
-
trait
IfApi extends Universe.TermTreeApi
The API that all ifs support
The API that all ifs support
- Definition Classes
- Trees
-
abstract
class
IfExtractor extends AnyRef
An extractor class to create and pattern match with syntax
If(cond, thenp, elsep)
.An extractor class to create and pattern match with syntax
If(cond, thenp, elsep)
. This AST node corresponds to the following Scala code:if
(cond) thenpelse
elsepIf the alternative is not present, the
elsep
is set toLiteral(Constant(()))
.- Definition Classes
- Trees
-
trait
ImplDefApi extends Universe.MemberDefApi
The API that all impl defs support
The API that all impl defs support
- Definition Classes
- Trees
-
trait
ImportApi extends Universe.SymTreeApi
The API that all imports support
The API that all imports support
- Definition Classes
- Trees
-
abstract
class
ImportExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Import(expr, selectors)
.An extractor class to create and pattern match with syntax
Import(expr, selectors)
. This AST node corresponds to the following Scala code:import expr.{selectors}
Selectors are a list of ImportSelectors, which conceptually are pairs of names (from, to). The last (and maybe only name) may be a nme.WILDCARD. For instance:
import qual.{x, y => z, _}
Would be represented as:
Import(qual, List(("x", "x"), ("y", "z"), (WILDCARD, null)))
The symbol of an
Import
is an import symbol @see Symbol.newImport. It's used primarily as a marker to check that the import has been typechecked.- Definition Classes
- Trees
-
trait
ImportSelectorApi extends AnyRef
The API that all import selectors support
The API that all import selectors support
- Definition Classes
- Trees
-
abstract
class
ImportSelectorExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ImportSelector(name:, namePos, rename, renamePos)
.An extractor class to create and pattern match with syntax
ImportSelector(name:, namePos, rename, renamePos)
. This is not an AST node, it is used as a part of theImport
node.- Definition Classes
- Trees
-
trait
LabelDefApi extends Universe.DefTreeApi with Universe.TermTreeApi
The API that all label defs support
The API that all label defs support
- Definition Classes
- Trees
-
abstract
class
LabelDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
LabelDef(name, params, rhs)
.An extractor class to create and pattern match with syntax
LabelDef(name, params, rhs)
.This AST node does not have direct correspondence to Scala code. It is used for tailcalls and like. For example, while/do are desugared to label defs as follows:
while (cond) body ==> LabelDef($L, List(), if (cond) { body; L$() } else ())
do body while (cond) ==> LabelDef($L, List(), body; if (cond) L$() else ())
- Definition Classes
- Trees
-
trait
LiteralApi extends Universe.TermTreeApi
The API that all literals support
The API that all literals support
- Definition Classes
- Trees
-
abstract
class
LiteralExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Literal(value)
.An extractor class to create and pattern match with syntax
Literal(value)
. This AST node corresponds to the following Scala code:value
- Definition Classes
- Trees
-
trait
MatchApi extends Universe.TermTreeApi
The API that all matches support
The API that all matches support
- Definition Classes
- Trees
-
abstract
class
MatchExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Match(selector, cases)
.An extractor class to create and pattern match with syntax
Match(selector, cases)
. This AST node corresponds to the following Scala code:selector
match
{ cases }Match
is also used in pattern matching assignments likeval (foo, bar) = baz
.- Definition Classes
- Trees
-
trait
MemberDefApi extends Universe.DefTreeApi
The API that all member defs support
The API that all member defs support
- Definition Classes
- Trees
-
abstract
class
ModifiersApi extends AnyRef
The API that all Modifiers support
The API that all Modifiers support
- Definition Classes
- Trees
-
abstract
class
ModifiersExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Modifiers(flags, privateWithin, annotations)
.An extractor class to create and pattern match with syntax
Modifiers(flags, privateWithin, annotations)
. Modifiers encapsulate flags, visibility annotations and Scala annotations for member definitions.- Definition Classes
- Trees
-
trait
ModuleDefApi extends Universe.ImplDefApi
The API that all module defs support
The API that all module defs support
- Definition Classes
- Trees
-
abstract
class
ModuleDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ModuleDef(mods, name, impl)
.An extractor class to create and pattern match with syntax
ModuleDef(mods, name, impl)
. This AST node corresponds to the following Scala code:mods
object
name implWhere impl stands for:
extends
parents { defs }- Definition Classes
- Trees
-
trait
NameTreeApi extends Universe.TreeApi
The API that all name trees support
The API that all name trees support
- Definition Classes
- Trees
-
trait
NewApi extends Universe.TermTreeApi
The API that all news support
The API that all news support
- Definition Classes
- Trees
-
abstract
class
NewExtractor extends AnyRef
An extractor class to create and pattern match with syntax
New(tpt)
.An extractor class to create and pattern match with syntax
New(tpt)
. This AST node corresponds to the following Scala code:new
TThis node always occurs in the following context:
(
new
tpt).<init>[targs](args)For example, an AST representation of:
new Example[Int](2)(3)
is the following code:
Apply( Apply( TypeApply( Select(New(TypeTree(typeOf[Example])), nme.CONSTRUCTOR) TypeTree(typeOf[Int])), List(Literal(Constant(2)))), List(Literal(Constant(3))))
- Definition Classes
- Trees
-
trait
PackageDefApi extends Universe.MemberDefApi
The API that all package defs support
The API that all package defs support
- Definition Classes
- Trees
-
abstract
class
PackageDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
PackageDef(pid, stats)
.An extractor class to create and pattern match with syntax
PackageDef(pid, stats)
. This AST node corresponds to the following Scala code:package
pid { stats }- Definition Classes
- Trees
-
trait
RefTreeApi extends Universe.SymTreeApi with Universe.NameTreeApi
The API that all ref trees support
The API that all ref trees support
- Definition Classes
- Trees
-
abstract
class
RefTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
RefTree(qual, name)
.An extractor class to create and pattern match with syntax
RefTree(qual, name)
. This AST node corresponds to either Ident, Select or SelectFromTypeTree.- Definition Classes
- Trees
-
trait
ReturnApi extends Universe.TermTreeApi
The API that all returns support
The API that all returns support
- Definition Classes
- Trees
-
abstract
class
ReturnExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Return(expr)
.An extractor class to create and pattern match with syntax
Return(expr)
. This AST node corresponds to the following Scala code:return
exprThe symbol of a Return node is the enclosing method.
- Definition Classes
- Trees
-
trait
SelectApi extends Universe.RefTreeApi
The API that all selects support
The API that all selects support
- Definition Classes
- Trees
-
abstract
class
SelectExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Select(qual, name)
.An extractor class to create and pattern match with syntax
Select(qual, name)
. This AST node corresponds to the following Scala code:qualifier.selector
Should only be used with
qualifier
nodes which are terms, i.e. which haveisTerm
returningtrue
. OtherwiseSelectFromTypeTree
should be used instead.foo.Bar // represented as Select(Ident(<foo>), <Bar>) Foo#Bar // represented as SelectFromTypeTree(Ident(<Foo>), <Bar>)
- Definition Classes
- Trees
-
trait
SelectFromTypeTreeApi extends Universe.TypTreeApi with Universe.RefTreeApi
The API that all selects from type trees support
The API that all selects from type trees support
- Definition Classes
- Trees
-
abstract
class
SelectFromTypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
SelectFromTypeTree(qualifier, name)
.An extractor class to create and pattern match with syntax
SelectFromTypeTree(qualifier, name)
. This AST node corresponds to the following Scala code:qualifier # selector
Note: a path-dependent type p.T is expressed as p.type # T
Should only be used with
qualifier
nodes which are types, i.e. which haveisType
returningtrue
. OtherwiseSelect
should be used instead.Foo#Bar // represented as SelectFromTypeTree(Ident(<Foo>), <Bar>) foo.Bar // represented as Select(Ident(<foo>), <Bar>)
- Definition Classes
- Trees
-
trait
SingletonTypeTreeApi extends Universe.TypTreeApi
The API that all singleton type trees support
The API that all singleton type trees support
- Definition Classes
- Trees
-
abstract
class
SingletonTypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
SingletonTypeTree(ref)
.An extractor class to create and pattern match with syntax
SingletonTypeTree(ref)
. This AST node corresponds to the following Scala code:ref.type
- Definition Classes
- Trees
-
trait
StarApi extends Universe.TermTreeApi
The API that all stars support
The API that all stars support
- Definition Classes
- Trees
-
abstract
class
StarExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Star(elem)
.An extractor class to create and pattern match with syntax
Star(elem)
. This AST node corresponds to the following Scala code:pat*
- Definition Classes
- Trees
-
trait
SuperApi extends Universe.TermTreeApi
The API that all supers support
The API that all supers support
- Definition Classes
- Trees
-
abstract
class
SuperExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Super(qual, mix)
.An extractor class to create and pattern match with syntax
Super(qual, mix)
. This AST node corresponds to the following Scala code:C.super[M]
Which is represented as:
Super(This(C), M)
If
mix
is empty, it is tpnme.EMPTY.The symbol of a Super is the class _from_ which the super reference is made. For instance in C.super(...), it would be C.
- Definition Classes
- Trees
-
trait
SymTreeApi extends Universe.TreeApi
The API that all sym trees support
The API that all sym trees support
- Definition Classes
- Trees
-
trait
TemplateApi extends Universe.SymTreeApi
The API that all templates support
The API that all templates support
- Definition Classes
- Trees
-
abstract
class
TemplateExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Template(parents, self, body)
.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 } }
- Definition Classes
- Trees
-
trait
TermTreeApi extends Universe.TreeApi
The API that all term trees support
The API that all term trees support
- Definition Classes
- Trees
-
trait
ThisApi extends Universe.TermTreeApi with Universe.SymTreeApi
The API that all thises support
The API that all thises support
- Definition Classes
- Trees
-
abstract
class
ThisExtractor extends AnyRef
An extractor class to create and pattern match with syntax
This(qual)
.An extractor class to create and pattern match with syntax
This(qual)
. This AST node corresponds to the following Scala code:qual.this
The symbol of a This is the class to which the this refers. For instance in C.this, it would be C.
- Definition Classes
- Trees
-
trait
ThrowApi extends Universe.TermTreeApi
The API that all tries support
The API that all tries support
- Definition Classes
- Trees
-
abstract
class
ThrowExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Throw(expr)
.An extractor class to create and pattern match with syntax
Throw(expr)
. This AST node corresponds to the following Scala code:throw
expr- Definition Classes
- Trees
-
abstract
class
Transformer extends AnyRef
A class that implement a default tree transformation strategy: breadth-first component-wise cloning.
A class that implement a default tree transformation strategy: breadth-first component-wise cloning.
- Definition Classes
- Trees
-
class
Traverser extends AnyRef
A class that implement a default tree traversal strategy: breadth-first component-wise.
A class that implement a default tree traversal strategy: breadth-first component-wise.
- Definition Classes
- Trees
-
trait
TreeApi extends Product
The API that all trees support.
The API that all trees support. The main source of information about trees is the scala.reflect.api.Trees page.
- Definition Classes
- Trees
-
abstract
class
TreeCopierOps extends AnyRef
The API of a tree copier.
The API of a tree copier.
- Definition Classes
- Trees
-
trait
TryApi extends Universe.TermTreeApi
The API that all tries support
The API that all tries support
- Definition Classes
- Trees
-
abstract
class
TryExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Try(block, catches, finalizer)
.An extractor class to create and pattern match with syntax
Try(block, catches, finalizer)
. This AST node corresponds to the following Scala code:try
blockcatch
{ catches }finally
finalizerIf the finalizer is not present, the
finalizer
is set toEmptyTree
.- Definition Classes
- Trees
-
trait
TypTreeApi extends Universe.TreeApi
The API that all typ trees support
The API that all typ trees support
- Definition Classes
- Trees
-
trait
TypeApplyApi extends Universe.GenericApplyApi
The API that all type applies support
The API that all type applies support
- Definition Classes
- Trees
-
abstract
class
TypeApplyExtractor extends AnyRef
An extractor class to create and pattern match with syntax
TypeApply(fun, args)
.An extractor class to create and pattern match with syntax
TypeApply(fun, args)
. This AST node corresponds to the following Scala code:fun[args]
Should only be used with
fun
nodes which are terms, i.e. which haveisTerm
returningtrue
. OtherwiseAppliedTypeTree
should be used instead.def foo[T] = ??? foo[Int] // represented as TypeApply(Ident(<foo>), List(TypeTree(<Int>)))
List[Int] as in
val x: List[Int] = ???
// represented as AppliedTypeTree(Ident(<List>), List(TypeTree(<Int>)))- Definition Classes
- Trees
-
trait
TypeBoundsTreeApi extends Universe.TypTreeApi
The API that all type bound trees support
The API that all type bound trees support
- Definition Classes
- Trees
-
abstract
class
TypeBoundsTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
TypeBoundsTree(lo, hi)
.An extractor class to create and pattern match with syntax
TypeBoundsTree(lo, hi)
. This AST node corresponds to the following Scala code:>: lo <: hi
- Definition Classes
- Trees
-
trait
TypeDefApi extends Universe.MemberDefApi
The API that all type defs support
The API that all type defs support
- Definition Classes
- Trees
-
abstract
class
TypeDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
TypeDef(mods, name, tparams, rhs)
.An extractor class to create and pattern match with syntax
TypeDef(mods, name, tparams, rhs)
. This AST node corresponds to the following Scala code:mods
type
name[tparams] = rhsmods
type
name[tparams] >: lo <: hiFirst usage illustrates
TypeDefs
representing type aliases and type parameters. Second usage illustratesTypeDefs
representing abstract types, where lo and hi are bothTypeBoundsTrees
andModifier.deferred
is set in mods.- Definition Classes
- Trees
-
trait
TypeTreeApi extends Universe.TypTreeApi
The API that all type trees support
The API that all type trees support
- Definition Classes
- Trees
-
abstract
class
TypeTreeExtractor extends AnyRef
An extractor class to create and pattern match with syntax
TypeTree()
.An extractor class to create and pattern match with syntax
TypeTree()
. This AST node does not have direct correspondence to Scala code, and is emitted by everywhere when we want to wrap aType
in aTree
.- Definition Classes
- Trees
-
trait
TypedApi extends Universe.TermTreeApi
The API that all typeds support
The API that all typeds support
- Definition Classes
- Trees
-
abstract
class
TypedExtractor extends AnyRef
An extractor class to create and pattern match with syntax
Typed(expr, tpt)
.An extractor class to create and pattern match with syntax
Typed(expr, tpt)
. This AST node corresponds to the following Scala code:expr: tpt
- Definition Classes
- Trees
-
trait
UnApplyApi extends Universe.TermTreeApi
The API that all unapplies support
The API that all unapplies support
- Definition Classes
- Trees
-
abstract
class
UnApplyExtractor extends AnyRef
An extractor class to create and pattern match with syntax
UnApply(fun, args)
.An extractor class to create and pattern match with syntax
UnApply(fun, args)
. This AST node does not have direct correspondence to Scala code, and is introduced when typechecking pattern matches andtry
blocks.- Definition Classes
- Trees
-
trait
ValDefApi extends Universe.ValOrDefDefApi
The API that all val defs support
The API that all val defs support
- Definition Classes
- Trees
-
abstract
class
ValDefExtractor extends AnyRef
An extractor class to create and pattern match with syntax
ValDef(mods, name, tpt, rhs)
.An extractor class to create and pattern match with syntax
ValDef(mods, name, tpt, rhs)
. This AST node corresponds to any of the following Scala code:mods
val
name: tpt = rhsmods
var
name: tpt = rhsmods name: tpt = rhs // in signatures of function and method definitions
self: Bar => // self-types
If the type of a value is not specified explicitly (i.e. is meant to be inferred), this is expressed by having
tpt
set toTypeTree()
(but not to anEmptyTree
!).- Definition Classes
- Trees
-
trait
ValOrDefDefApi extends Universe.MemberDefApi
The API that all val defs and def defs support
The API that all val defs and def defs support
- Definition Classes
- Trees
- case class Alternative(trees: List[SymbolTable.Tree]) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.AlternativeApi with Product with Serializable
- case class Annotated(annot: SymbolTable.Tree, arg: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.AnnotatedApi with Product with Serializable
- case class AppliedTypeTree(tpt: SymbolTable.Tree, args: List[SymbolTable.Tree]) extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.AppliedTypeTreeApi with Product with Serializable
- case class Apply(fun: SymbolTable.Tree, args: List[SymbolTable.Tree]) extends SymbolTable.GenericApply with SymbolTable.ApplyApi with Product with Serializable
- case class ApplyDynamic(qual: SymbolTable.Tree, args: List[SymbolTable.Tree]) extends SymbolTable.SymTree with SymbolTable.TermTree with Product with Serializable
- class ApplyImplicitView extends SymbolTable.Apply
- class ApplyToImplicitArgs extends SymbolTable.Apply
-
case class
ArrayValue(elemtpt: SymbolTable.Tree, elems: List[SymbolTable.Tree]) extends SymbolTable.Tree with SymbolTable.TermTree with Product with Serializable
An array of expressions.
An array of expressions. This AST node needs to be translated in backend. It is used to pass arguments to vararg arguments. Introduced by compiler phase uncurry.
This AST node does not have direct correspondence to Scala code, and is used to pass arguments to vararg arguments. For instance:
printf("%s%d", foo, 42)
Is translated to after compiler phase uncurry to:
Apply( Ident("printf"), Literal("%s%d"), ArrayValue(<Any>, List(Ident("foo"), Literal(42))))
- case class Assign(lhs: SymbolTable.Tree, rhs: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.AssignApi with Product with Serializable
- case class AssignOrNamedArg(lhs: SymbolTable.Tree, rhs: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.AssignOrNamedArgApi with Product with Serializable
- case class Bind(name: SymbolTable.Name, body: SymbolTable.Tree) extends SymbolTable.DefTree with SymbolTable.BindApi with Product with Serializable
- case class Block(stats: List[SymbolTable.Tree], expr: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.BlockApi with Product with Serializable
- trait CannotHaveAttrs extends SymbolTable.Tree
- case class CaseDef(pat: SymbolTable.Tree, guard: SymbolTable.Tree, body: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.CaseDefApi with Product with Serializable
- class ChangeOwnerTraverser extends SymbolTable.Traverser
- case class ClassDef(mods: SymbolTable.Modifiers, name: SymbolTable.TypeName, tparams: List[SymbolTable.TypeDef], impl: SymbolTable.Template) extends SymbolTable.ImplDef with SymbolTable.ClassDefApi with Product with Serializable
- class CollectTreeTraverser[T] extends SymbolTable.Traverser
- case class CompoundTypeTree(templ: SymbolTable.Template) extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.CompoundTypeTreeApi with Product with Serializable
- case class DefDef(mods: SymbolTable.Modifiers, name: SymbolTable.TermName, tparams: List[SymbolTable.TypeDef], vparamss: List[List[SymbolTable.ValDef]], tpt: SymbolTable.Tree, rhs: SymbolTable.Tree) extends SymbolTable.ValOrDefDef with SymbolTable.DefDefApi with Product with Serializable
- abstract class DefTree extends SymbolTable.SymTree with SymbolTable.NameTree with SymbolTable.DefTreeApi
- case class ExistentialTypeTree(tpt: SymbolTable.Tree, whereClauses: List[SymbolTable.MemberDef]) extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.ExistentialTypeTreeApi with Product with Serializable
- class FilterTreeTraverser extends SymbolTable.Traverser
- class FindTreeTraverser extends SymbolTable.Traverser
- class ForeachPartialTreeTraverser extends SymbolTable.Traverser
- class ForeachTreeTraverser extends SymbolTable.Traverser
- case class Function(vparams: List[SymbolTable.ValDef], body: SymbolTable.Tree) extends SymbolTable.SymTree with SymbolTable.TermTree with SymbolTable.FunctionApi with Product with Serializable
- abstract class GenericApply extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.GenericApplyApi
- case class Ident(name: SymbolTable.Name) extends SymbolTable.SymTree with SymbolTable.RefTree with SymbolTable.IdentApi with Product with Serializable
- case class If(cond: SymbolTable.Tree, thenp: SymbolTable.Tree, elsep: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.IfApi with Product with Serializable
- abstract class ImplDef extends SymbolTable.MemberDef with SymbolTable.ImplDefApi
- case class Import(expr: SymbolTable.Tree, selectors: List[SymbolTable.ImportSelector]) extends SymbolTable.SymTree with SymbolTable.ImportApi with Product with Serializable
- case class ImportSelector(name: SymbolTable.Name, namePos: Int, rename: SymbolTable.Name, renamePos: Int) extends SymbolTable.ImportSelectorApi with Product with Serializable
- abstract class InternalTreeCopierOps extends SymbolTable.TreeCopierOps
- case class LabelDef(name: SymbolTable.TermName, params: List[SymbolTable.Ident], rhs: SymbolTable.Tree) extends SymbolTable.DefTree with SymbolTable.TermTree with SymbolTable.LabelDefApi with Product with Serializable
- class LazyTreeCopier extends SymbolTable.InternalTreeCopierOps
- case class Literal(value: SymbolTable.Constant) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.LiteralApi with Product with Serializable
- case class Match(selector: SymbolTable.Tree, cases: List[SymbolTable.CaseDef]) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.MatchApi with Product with Serializable
- abstract class MemberDef extends SymbolTable.DefTree with SymbolTable.MemberDefApi
-
case class
Modifiers(flags: Long, privateWithin: SymbolTable.Name, annotations: List[SymbolTable.Tree]) extends SymbolTable.ModifiersApi with HasFlags with Product with Serializable
- privateWithin
the qualifier for a private (a type name) or tpnme.EMPTY, if none is given.
- annotations
the annotations for the definition. Note: the typechecker drops these annotations, use the AnnotationInfo's (Symbol.annotations) in later phases.
- case class ModuleDef(mods: SymbolTable.Modifiers, name: SymbolTable.TermName, impl: SymbolTable.Template) extends SymbolTable.ImplDef with SymbolTable.ModuleDefApi with Product with Serializable
- trait NameTree extends SymbolTable.Tree with SymbolTable.NameTreeApi
- case class New(tpt: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.NewApi with Product with Serializable
- case class PackageDef(pid: SymbolTable.RefTree, stats: List[SymbolTable.Tree]) extends SymbolTable.MemberDef with SymbolTable.PackageDefApi with Product with Serializable
- trait RefTree extends SymbolTable.SymTree with SymbolTable.NameTree with SymbolTable.RefTreeApi
- case class ReferenceToBoxed(ident: SymbolTable.Ident) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.ReferenceToBoxedApi with Product with Serializable
- case class Return(expr: SymbolTable.Tree) extends SymbolTable.SymTree with SymbolTable.TermTree with SymbolTable.ReturnApi with Product with Serializable
- case class Select(qualifier: SymbolTable.Tree, name: SymbolTable.Name) extends SymbolTable.SymTree with SymbolTable.RefTree with SymbolTable.SelectApi with Product with Serializable
- case class SelectFromTypeTree(qualifier: SymbolTable.Tree, name: SymbolTable.TypeName) extends SymbolTable.SymTree with SymbolTable.RefTree with SymbolTable.TypTree with SymbolTable.SelectFromTypeTreeApi with Product with Serializable
- case class SingletonTypeTree(ref: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.SingletonTypeTreeApi with Product with Serializable
- case class Star(elem: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.StarApi with Product with Serializable
- class StrictTreeCopier extends SymbolTable.InternalTreeCopierOps
- case class Super(qual: SymbolTable.Tree, mix: SymbolTable.TypeName) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.SuperApi with Product with Serializable
- abstract class SymTree extends SymbolTable.Tree with SymbolTable.SymTreeApi
- case class Template(parents: List[SymbolTable.Tree], self: SymbolTable.ValDef, body: List[SymbolTable.Tree]) extends SymbolTable.SymTree with SymbolTable.TemplateApi with Product with Serializable
- trait TermTree extends SymbolTable.Tree with SymbolTable.TermTreeApi
- case class This(qual: SymbolTable.TypeName) extends SymbolTable.SymTree with SymbolTable.TermTree with SymbolTable.ThisApi with Product with Serializable
-
class
ThisSubstituter extends SymbolTable.Transformer
Substitute clazz.this with
to
.Substitute clazz.this with
to
.to
must be an attributed tree. - case class Throw(expr: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.ThrowApi with Product with Serializable
- abstract class Tree extends SymbolTable.TreeContextApiImpl with SymbolTable.Attachable with Product
- abstract class TreeContextApiImpl extends SymbolTable.TreeApi
-
abstract
type
TreeCopier >: Null <: SymbolTable.InternalTreeCopierOps
The type of standard (lazy) tree copiers.
-
class
TreeReplacer extends SymbolTable.Transformer
A transformer that replaces tree
from
with treeto
in a given tree - trait TreeStackTraverser extends SymbolTable.Traverser
- class TreeSubstituter extends SymbolTable.Transformer
- class TreeSymSubstTraverser extends SymbolTable.TypeMapTreeSubstituter
-
class
TreeSymSubstituter extends SymbolTable.Transformer
Substitute symbols in
from
with symbols into
.Substitute symbols in
from
with symbols into
. Returns a new tree using the new symbols and whose Ident and Select nodes are name-consistent with the new symbols.Note: This is currently a destructive operation on the original Tree. Trees currently assigned a symbol in
from
will be assigned the new symbols without copying, and trees that define symbols with aninfo
that refer a symbol infrom
will have a new type assigned. - class TreeTypeSubstituter extends SymbolTable.TypeMapTreeSubstituter
- case class Try(block: SymbolTable.Tree, catches: List[SymbolTable.CaseDef], finalizer: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.TryApi with Product with Serializable
- trait TypTree extends SymbolTable.Tree with SymbolTable.TypTreeApi
- case class TypeApply(fun: SymbolTable.Tree, args: List[SymbolTable.Tree]) extends SymbolTable.GenericApply with SymbolTable.TypeApplyApi with Product with Serializable
- case class TypeBoundsTree(lo: SymbolTable.Tree, hi: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.TypeBoundsTreeApi with Product with Serializable
- case class TypeDef(mods: SymbolTable.Modifiers, name: SymbolTable.TypeName, tparams: List[SymbolTable.TypeDef], rhs: SymbolTable.Tree) extends SymbolTable.MemberDef with SymbolTable.TypeDefApi with Product with Serializable
- class TypeMapTreeSubstituter extends SymbolTable.Traverser
- case class TypeTree() extends SymbolTable.Tree with SymbolTable.TypTree with SymbolTable.TypeTreeApi with Product with Serializable
- case class Typed(expr: SymbolTable.Tree, tpt: SymbolTable.Tree) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.TypedApi with Product with Serializable
- case class UnApply(fun: SymbolTable.Tree, args: List[SymbolTable.Tree]) extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.UnApplyApi with Product with Serializable
-
trait
UnderConstructionTransformer extends SymbolTable.Transformer
Tracks the classes currently under construction during a transform
- case class ValDef(mods: SymbolTable.Modifiers, name: SymbolTable.TermName, tpt: SymbolTable.Tree, rhs: SymbolTable.Tree) extends SymbolTable.ValOrDefDef with SymbolTable.ValDefApi with Product with Serializable
- abstract class ValOrDefDef extends SymbolTable.MemberDef with SymbolTable.ValOrDefDefApi
-
type
ModifiersCreator = SymbolTable.ModifiersExtractor
- Definition Classes
- Trees
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use ModifiersExtractor instead
Abstract Value Members
-
abstract
def
newLazyTreeCopier: SymbolTable.TreeCopier
Creates a lazy tree copier.
Creates a lazy tree copier.
- Definition Classes
- Trees
-
abstract
def
newStrictTreeCopier: SymbolTable.TreeCopier
Creates a strict tree copier.
Creates a strict tree copier.
- Definition Classes
- Trees
-
abstract
def
treeToString(tree: SymbolTable.Tree): String
Obtains string representation of a tree
Obtains string representation of a tree
- Attributes
- protected
- Definition Classes
- Trees
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val AlternativeTag: ClassTag[SymbolTable.Alternative]
- implicit val AnnotatedTag: ClassTag[SymbolTable.Annotated]
- implicit val AppliedTypeTreeTag: ClassTag[SymbolTable.AppliedTypeTree]
-
def
Apply(sym: SymbolTable.Symbol, args: SymbolTable.Tree*): SymbolTable.Tree
A factory method for
Apply
nodes. -
def
ApplyConstructor(tpt: SymbolTable.Tree, args: List[SymbolTable.Tree]): SymbolTable.Apply
0-1 argument list new, based on a type tree.
- implicit val ApplyTag: ClassTag[SymbolTable.Apply]
- implicit val AssignOrNamedArgTag: ClassTag[SymbolTable.AssignOrNamedArg]
- implicit val AssignTag: ClassTag[SymbolTable.Assign]
-
def
Bind(sym: SymbolTable.Symbol, body: SymbolTable.Tree): SymbolTable.Bind
A factory method for
Bind
nodes. - implicit val BindTag: ClassTag[SymbolTable.Bind]
-
def
Block(stats: SymbolTable.Tree*): SymbolTable.Block
Block factory that flattens directly nested blocks.
- implicit val BlockTag: ClassTag[SymbolTable.Block]
-
def
CaseDef(pat: SymbolTable.Tree, body: SymbolTable.Tree): SymbolTable.CaseDef
casedef shorthand
- implicit val CaseDefTag: ClassTag[SymbolTable.CaseDef]
- implicit val ClassDefTag: ClassTag[SymbolTable.ClassDef]
- implicit val CompoundTypeTreeTag: ClassTag[SymbolTable.CompoundTypeTree]
- implicit val DefDefTag: ClassTag[SymbolTable.DefDef]
- implicit val DefTreeTag: ClassTag[SymbolTable.DefTree]
- lazy val EmptyTreeTypeSubstituter: SymbolTable.TreeTypeSubstituter
- implicit val ExistentialTypeTreeTag: ClassTag[SymbolTable.ExistentialTypeTree]
- implicit val FunctionTag: ClassTag[SymbolTable.Function]
- implicit val GenericApplyTag: ClassTag[SymbolTable.GenericApply]
-
def
Ident(sym: SymbolTable.Symbol): SymbolTable.Ident
A factory method for
Ident
nodes. -
def
Ident(name: String): SymbolTable.Ident
A factory method for
Ident
nodes. - implicit val IdentTag: ClassTag[SymbolTable.Ident]
- implicit val IfTag: ClassTag[SymbolTable.If]
- implicit val ImplDefTag: ClassTag[SymbolTable.ImplDef]
- implicit val ImportSelectorTag: ClassTag[SymbolTable.ImportSelector]
- implicit val ImportTag: ClassTag[SymbolTable.Import]
- implicit val LabelDefTag: ClassTag[SymbolTable.LabelDef]
- implicit val LiteralTag: ClassTag[SymbolTable.Literal]
- implicit val MatchTag: ClassTag[SymbolTable.Match]
- implicit val MemberDefTag: ClassTag[SymbolTable.MemberDef]
-
def
Modifiers(flags: SymbolTable.FlagSet): SymbolTable.Modifiers
The factory for
Modifiers
instances.The factory for
Modifiers
instances.- Definition Classes
- Trees
-
def
Modifiers(flags: SymbolTable.FlagSet, privateWithin: SymbolTable.Name): SymbolTable.Modifiers
The factory for
Modifiers
instances.The factory for
Modifiers
instances.- Definition Classes
- Trees
- implicit val ModifiersTag: ClassTag[SymbolTable.Modifiers]
- implicit val ModuleDefTag: ClassTag[SymbolTable.ModuleDef]
- implicit val NameTreeTag: ClassTag[SymbolTable.NameTree]
-
def
New(sym: SymbolTable.Symbol, args: SymbolTable.Tree*): SymbolTable.Tree
0-1 argument list new, based on a symbol.
- def New(tpe: SymbolTable.Type, argss: List[List[SymbolTable.Tree]]): SymbolTable.Tree
-
def
New(tpe: SymbolTable.Type, args: SymbolTable.Tree*): SymbolTable.Tree
0-1 argument list new, based on a type.
-
def
New(tpt: SymbolTable.Tree, argss: List[List[SymbolTable.Tree]]): SymbolTable.Tree
Factory method for object creation
new tpt(args_1)...(args_n)
ANew(t, as)
is expanded to:(new t).<init>(as)
- def NewFromConstructor(constructor: SymbolTable.Symbol, args: SymbolTable.Tree*): SymbolTable.Apply
- implicit val NewTag: ClassTag[SymbolTable.New]
-
lazy val
NoMods: SymbolTable.Modifiers
An empty
Modifiers
object: no flags, empty visibility annotation and no Scala annotations.An empty
Modifiers
object: no flags, empty visibility annotation and no Scala annotations.- Definition Classes
- Trees
- implicit val PackageDefTag: ClassTag[SymbolTable.PackageDef]
- implicit val RefTreeTag: ClassTag[SymbolTable.RefTree]
- implicit val ReferenceToBoxedTag: ClassTag[SymbolTable.ReferenceToBoxed]
- implicit val ReturnTag: ClassTag[SymbolTable.Return]
-
def
Select(qualifier: SymbolTable.Tree, sym: SymbolTable.Symbol): SymbolTable.Select
A factory method for
Select
nodes. -
def
Select(qualifier: SymbolTable.Tree, name: String): SymbolTable.Select
A factory method for
Select
nodes. - implicit val SelectFromTypeTreeTag: ClassTag[SymbolTable.SelectFromTypeTree]
- implicit val SelectTag: ClassTag[SymbolTable.Select]
- implicit val SingletonTypeTreeTag: ClassTag[SymbolTable.SingletonTypeTree]
- implicit val StarTag: ClassTag[SymbolTable.Star]
-
def
Super(sym: SymbolTable.Symbol, mix: SymbolTable.TypeName): SymbolTable.Tree
A factory method for
Super
nodes. -
def
SuperSelect(clazz: SymbolTable.Symbol, sym: SymbolTable.Symbol): SymbolTable.Tree
Creates a tree that selects a specific member
sym
without having to qualify thesuper
.Creates a tree that selects a specific member
sym
without having to qualify thesuper
. For example, given traitsB <:< A
, a classC <:< B
needs to invokeA.$init$
. IfA
is not a direct parent, a treesuper[A].$init$
would not type check ("does not name a parent"). So we generatesuper.$init$
and pre-assign the correct symbol. A special-case intypedSelectInternal
assigns the correct typeA
to thesuper
qualifier. - implicit val SuperTag: ClassTag[SymbolTable.Super]
- implicit val SymTreeTag: ClassTag[SymbolTable.SymTree]
-
def
Template(sym: SymbolTable.Symbol, body: List[SymbolTable.Tree]): SymbolTable.Template
- sym
the template's symbol
- body
trees that constitute the body of the template
- returns
the template
- implicit val TemplateTag: ClassTag[SymbolTable.Template]
- implicit val TermTreeTag: ClassTag[SymbolTable.TermTree]
-
def
This(sym: SymbolTable.Symbol): SymbolTable.Tree
A factory method for
This
nodes. - implicit val ThisTag: ClassTag[SymbolTable.This]
-
def
Throw(tpe: SymbolTable.Type, args: SymbolTable.Tree*): SymbolTable.Throw
A factory method for
Throw
nodes. - implicit val ThrowTag: ClassTag[SymbolTable.Throw]
- implicit val TreeTag: ClassTag[SymbolTable.Tree]
-
def
Try(body: SymbolTable.Tree, cases: (SymbolTable.Tree, SymbolTable.Tree)*): SymbolTable.Try
A factory method for
Try
nodes. - implicit val TryTag: ClassTag[SymbolTable.Try]
- implicit val TypTreeTag: ClassTag[SymbolTable.TypTree]
- implicit val TypeApplyTag: ClassTag[SymbolTable.TypeApply]
- def TypeBoundsTree(sym: SymbolTable.Symbol): SymbolTable.TypeBoundsTree
- def TypeBoundsTree(bounds: SymbolTable.TypeBounds): SymbolTable.TypeBoundsTree
- implicit val TypeBoundsTreeTag: ClassTag[SymbolTable.TypeBoundsTree]
- implicit val TypeDefTag: ClassTag[SymbolTable.TypeDef]
-
def
TypeTree(tp: SymbolTable.Type): SymbolTable.TypeTree
A factory method for
TypeTree
nodes. - implicit val TypeTreeTag: ClassTag[SymbolTable.TypeTree]
- implicit val TypedTag: ClassTag[SymbolTable.Typed]
- implicit val UnApplyTag: ClassTag[SymbolTable.UnApply]
- implicit val ValDefTag: ClassTag[SymbolTable.ValDef]
- implicit val ValOrDefDefTag: ClassTag[SymbolTable.ValOrDefDef]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def copyClassDef(tree: SymbolTable.Tree)(mods: SymbolTable.Modifiers = null, name: SymbolTable.Name = null, tparams: List[SymbolTable.TypeDef] = null, impl: SymbolTable.Template = null): SymbolTable.ClassDef
- def copyDefDef(tree: SymbolTable.Tree)(mods: SymbolTable.Modifiers = null, name: SymbolTable.Name = null, tparams: List[SymbolTable.TypeDef] = null, vparamss: List[List[SymbolTable.ValDef]] = null, tpt: SymbolTable.Tree = null, rhs: SymbolTable.Tree = null): SymbolTable.DefDef
- def copyModuleDef(tree: SymbolTable.Tree)(mods: SymbolTable.Modifiers = null, name: SymbolTable.Name = null, impl: SymbolTable.Template = null): SymbolTable.ModuleDef
- def copyTypeDef(tree: SymbolTable.Tree)(mods: SymbolTable.Modifiers = null, name: SymbolTable.Name = null, tparams: List[SymbolTable.TypeDef] = null, rhs: SymbolTable.Tree = null): SymbolTable.TypeDef
- def copyValDef(tree: SymbolTable.Tree)(mods: SymbolTable.Modifiers = null, name: SymbolTable.Name = null, tpt: SymbolTable.Tree = null, rhs: SymbolTable.Tree = null): SymbolTable.ValDef
- def deriveCaseDef(cdef: SymbolTable.Tree)(applyToBody: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.CaseDef
- def deriveClassDef(cdef: SymbolTable.Tree)(applyToImpl: (SymbolTable.Template) ⇒ SymbolTable.Template): SymbolTable.ClassDef
- def deriveDefDef(ddef: SymbolTable.Tree)(applyToRhs: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.DefDef
- def deriveFunction(func: SymbolTable.Tree)(applyToRhs: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.Function
- def deriveLabelDef(ldef: SymbolTable.Tree)(applyToRhs: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.LabelDef
- def deriveModuleDef(mdef: SymbolTable.Tree)(applyToImpl: (SymbolTable.Template) ⇒ SymbolTable.Template): SymbolTable.ModuleDef
- def deriveTemplate(templ: SymbolTable.Tree)(applyToBody: (List[SymbolTable.Tree]) ⇒ List[SymbolTable.Tree]): SymbolTable.Template
- def deriveValDef(vdef: SymbolTable.Tree)(applyToRhs: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.ValDef
- def duplicateAndKeepPositions(tree: SymbolTable.Tree): SymbolTable.Tree
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isReferenceToPredef(t: SymbolTable.Tree): Boolean
Is the tree Predef, scala.Predef, or _root_.scala.Predef?
- def isReferenceToScalaMember(t: SymbolTable.Tree, Id: SymbolTable.Name): Boolean
-
def
itransform(transformer: SymbolTable.Transformer, tree: SymbolTable.Tree): SymbolTable.Tree
Delegates the transformation strategy to
scala.reflect.internal.Trees
, because pattern matching on abstract types we have here degrades performance. -
def
itraverse(traverser: SymbolTable.Traverser, tree: SymbolTable.Tree): Unit
Delegates the traversal strategy to
scala.reflect.internal.Trees
, because pattern matching on abstract types we have here degrades performance. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newDefDef(sym: SymbolTable.Symbol, rhs: SymbolTable.Tree)(mods: SymbolTable.Modifiers = Modifiers(sym.flags), name: SymbolTable.TermName = sym.name.toTermName, tparams: List[SymbolTable.TypeDef] = sym.typeParams map TypeDef.apply, vparamss: List[List[SymbolTable.ValDef]] = mapParamss(sym)(ValDef.apply), tpt: SymbolTable.Tree = TypeTreeMemberType(sym)): SymbolTable.DefDef
- def newTypeDef(sym: SymbolTable.Symbol, rhs: SymbolTable.Tree)(mods: SymbolTable.Modifiers = Modifiers(sym.flags), name: SymbolTable.TypeName = sym.name.toTypeName, tparams: List[SymbolTable.TypeDef] = sym.typeParams map TypeDef.apply): SymbolTable.TypeDef
- def newValDef(sym: SymbolTable.Symbol, rhs: SymbolTable.Tree)(mods: SymbolTable.Modifiers = Modifiers(sym.flags), name: SymbolTable.TermName = sym.name.toTermName, tpt: SymbolTable.Tree = TypeTreeMemberType(sym)): SymbolTable.ValDef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
treeCopy: SymbolTable.TreeCopier
The standard (lazy) tree copier.
The standard (lazy) tree copier.
- Definition Classes
- Trees
-
def
treeLine(t: SymbolTable.Tree): String
- Attributes
- protected
-
def
treeStatus(t: SymbolTable.Tree, enclosingTree: SymbolTable.Tree = null): String
- Attributes
- protected
-
def
treeSymStatus(t: SymbolTable.Tree): String
- Attributes
- protected
-
def
typeTreeSymbol(tree: SymbolTable.TypeTree): SymbolTable.Symbol
Delegate for a TypeTree symbol.
Delegate for a TypeTree symbol. This operation is unsafe because it may trigger type checking when forcing the type symbol of the underlying type.
- Attributes
- protected
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def wrappingIntoTerm(tree0: SymbolTable.Tree)(op: (SymbolTable.Tree) ⇒ SymbolTable.Tree): SymbolTable.Tree
-
def
xtransform(transformer: SymbolTable.Transformer, tree: SymbolTable.Tree): SymbolTable.Tree
Provides an extension hook for the transformation strategy.
Provides an extension hook for the transformation strategy. Future-proofs against new node types.
- Attributes
- protected
- Definition Classes
- Trees
-
def
xtraverse(traverser: SymbolTable.Traverser, tree: SymbolTable.Tree): Unit
Provides an extension hook for the traversal strategy.
Provides an extension hook for the traversal strategy. Future-proofs against new node types.
- Attributes
- protected
- Definition Classes
- Trees
-
object
Alternative extends SymbolTable.AlternativeExtractor with Serializable
The constructor/extractor for
Alternative
instances. -
object
Annotated extends SymbolTable.AnnotatedExtractor with Serializable
The constructor/extractor for
Annotated
instances. -
object
AppliedTypeTree extends SymbolTable.AppliedTypeTreeExtractor with Serializable
The constructor/extractor for
AppliedTypeTree
instances. -
object
Apply extends SymbolTable.ApplyExtractor with Serializable
The constructor/extractor for
Apply
instances. -
object
Assign extends SymbolTable.AssignExtractor with Serializable
The constructor/extractor for
Assign
instances. -
object
AssignOrNamedArg extends SymbolTable.AssignOrNamedArgExtractor with Serializable
The constructor/extractor for
AssignOrNamedArg
instances. -
object
Bind extends SymbolTable.BindExtractor with Serializable
The constructor/extractor for
Bind
instances. -
object
Block extends SymbolTable.BlockExtractor with Serializable
The constructor/extractor for
Block
instances. -
object
CaseDef extends SymbolTable.CaseDefExtractor with Serializable
The constructor/extractor for
CaseDef
instances. -
object
ClassDef extends SymbolTable.ClassDefExtractor with Serializable
The constructor/extractor for
ClassDef
instances. -
object
CompoundTypeTree extends SymbolTable.CompoundTypeTreeExtractor with Serializable
The constructor/extractor for
CompoundTypeTree
instances. -
object
DefDef extends SymbolTable.DefDefExtractor with Serializable
The constructor/extractor for
DefDef
instances. -
object
EmptyTree extends SymbolTable.Tree with SymbolTable.TermTree with SymbolTable.CannotHaveAttrs with Product with Serializable
The empty tree
-
object
ExistentialTypeTree extends SymbolTable.ExistentialTypeTreeExtractor with Serializable
The constructor/extractor for
ExistentialTypeTree
instances. -
object
Function extends SymbolTable.FunctionExtractor with Serializable
The constructor/extractor for
Function
instances. -
object
Ident extends SymbolTable.IdentExtractor with Serializable
The constructor/extractor for
Ident
instances. -
object
If extends SymbolTable.IfExtractor with Serializable
The constructor/extractor for
If
instances. -
object
Import extends SymbolTable.ImportExtractor with Serializable
The constructor/extractor for
Import
instances. -
object
ImportSelector extends SymbolTable.ImportSelectorExtractor with Serializable
The constructor/extractor for
ImportSelector
instances. -
object
LabelDef extends SymbolTable.LabelDefExtractor with Serializable
The constructor/extractor for
LabelDef
instances. -
object
Literal extends SymbolTable.LiteralExtractor with Serializable
The constructor/extractor for
Literal
instances. -
object
Match extends SymbolTable.MatchExtractor with Serializable
The constructor/extractor for
Match
instances. - object MethodValue
-
object
Modifiers extends SymbolTable.ModifiersExtractor with Serializable
The constructor/extractor for
Modifiers
instances. -
object
ModuleDef extends SymbolTable.ModuleDefExtractor with Serializable
The constructor/extractor for
ModuleDef
instances. -
object
New extends SymbolTable.NewExtractor with Serializable
The constructor/extractor for
New
instances. -
object
PackageDef extends SymbolTable.PackageDefExtractor with Serializable
The constructor/extractor for
PackageDef
instances. -
object
RefTree extends SymbolTable.RefTreeExtractor
The constructor/extractor for
RefTree
instances. - object ReferenceToBoxed extends SymbolTable.ReferenceToBoxedExtractor with Serializable
-
object
Return extends SymbolTable.ReturnExtractor with Serializable
The constructor/extractor for
Return
instances. -
object
Select extends SymbolTable.SelectExtractor with Serializable
The constructor/extractor for
Select
instances. -
object
SelectFromTypeTree extends SymbolTable.SelectFromTypeTreeExtractor with Serializable
The constructor/extractor for
SelectFromTypeTree
instances. -
object
SingletonTypeTree extends SymbolTable.SingletonTypeTreeExtractor with Serializable
The constructor/extractor for
SingletonTypeTree
instances. -
object
Star extends SymbolTable.StarExtractor with Serializable
The constructor/extractor for
Star
instances. -
object
Super extends SymbolTable.SuperExtractor with Serializable
The constructor/extractor for
Super
instances. -
object
Template extends SymbolTable.TemplateExtractor with Serializable
The constructor/extractor for
Template
instances. -
object
This extends SymbolTable.ThisExtractor with Serializable
The constructor/extractor for
This
instances. -
object
Throw extends SymbolTable.ThrowExtractor with Serializable
The constructor/extractor for
Throw
instances. -
object
Try extends SymbolTable.TryExtractor with Serializable
The constructor/extractor for
Try
instances. -
object
TypeApply extends SymbolTable.TypeApplyExtractor with Serializable
The constructor/extractor for
TypeApply
instances. -
object
TypeBoundsTree extends SymbolTable.TypeBoundsTreeExtractor with Serializable
The constructor/extractor for
TypeBoundsTree
instances. -
object
TypeDef extends SymbolTable.TypeDefExtractor with Serializable
The constructor/extractor for
TypeDef
instances. -
object
TypeTree extends SymbolTable.TypeTreeExtractor with Serializable
The constructor/extractor for
TypeTree
instances. -
object
Typed extends SymbolTable.TypedExtractor with Serializable
The constructor/extractor for
Typed
instances. -
object
UnApply extends SymbolTable.UnApplyExtractor with Serializable
The constructor/extractor for
UnApply
instances. -
object
ValDef extends SymbolTable.ValDefExtractor with Serializable
The constructor/extractor for
ValDef
instances. - object ValOrDefDef
- object duplicateAndResetPos extends SymbolTable.Transformer
-
object
noSelfType extends SymbolTable.ValDef with SymbolTable.CannotHaveAttrs
An empty deferred value definition corresponding to: val _: _ This is used as a placeholder in the
self
parameter Template if there is no definition of a self value of self type. -
object
pendingSuperCall extends SymbolTable.Apply with SymbolTable.CannotHaveAttrs
An empty superclass constructor call corresponding to: super.<init>() This is used as a placeholder in the primary constructor body in class templates to denote the insertion point of a call to superclass constructor after the typechecker figures out the superclass of a given template.
An empty superclass constructor call corresponding to: super.<init>() This is used as a placeholder in the primary constructor body in class templates to denote the insertion point of a call to superclass constructor after the typechecker figures out the superclass of a given template.
Deprecated Value Members
- lazy val emptyValDef: SymbolTable.noSelfType.type