Package hydra.scala.syntax
Class Tree
- java.lang.Object
-
- hydra.scala.syntax.Tree
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Tree>
- Direct Known Subclasses:
Tree.Bounds,Tree.CaseTree,Tree.Ctor,Tree.Enumerator,Tree.Importee,Tree.Importer,Tree.Member,Tree.Mod,Tree.Pat,Tree.Ref,Tree.Source,Tree.Stat,Tree.Template,Tree.Type
public abstract class Tree extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Tree>
The root of the Scalameta tree hierarchy. Each arm names a major AST category.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTree.Boundsstatic classTree.CaseTreestatic classTree.Ctorstatic classTree.Enumeratorstatic classTree.Importeestatic classTree.Importerstatic classTree.Memberstatic classTree.Modstatic interfaceTree.PartialVisitor<R>Partial visitor overTreewith a defaultTree.PartialVisitor.otherwise(hydra.scala.syntax.Tree)branch.static classTree.Patstatic classTree.Refstatic classTree.Sourcestatic classTree.Statstatic classTree.Templatestatic classTree.Typestatic interfaceTree.Visitor<R>Visitor overTree.
-
Field Summary
Fields Modifier and Type Field Description static NameBOUNDSName of thehydra.scala.syntax.Tree.boundsfield.static NameCASE_TREEName of thehydra.scala.syntax.Tree.caseTreefield.static NameCTORName of thehydra.scala.syntax.Tree.ctorfield.static NameENUMERATORName of thehydra.scala.syntax.Tree.enumeratorfield.static NameIMPORTEEName of thehydra.scala.syntax.Tree.importeefield.static NameIMPORTERName of thehydra.scala.syntax.Tree.importerfield.static NameMEMBERName of thehydra.scala.syntax.Tree.memberfield.static NameMODName of thehydra.scala.syntax.Tree.modfield.static NamePATName of thehydra.scala.syntax.Tree.patfield.static NameREFName of thehydra.scala.syntax.Tree.reffield.static NameSOURCEName of thehydra.scala.syntax.Tree.sourcefield.static NameSTATName of thehydra.scala.syntax.Tree.statfield.static NameTEMPLATEName of thehydra.scala.syntax.Tree.templatefield.static NameTYPEName of thehydra.scala.syntax.Tree.typefield.static NameTYPE_Name of thehydra.scala.syntax.Treetype.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(Tree.Visitor<R> visitor)Dispatch tovisitor.abstract inthydraOrdinal()
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.Treetype.
-
REF
public static final Name REF
Name of thehydra.scala.syntax.Tree.reffield.
-
STAT
public static final Name STAT
Name of thehydra.scala.syntax.Tree.statfield.
-
TYPE
public static final Name TYPE
Name of thehydra.scala.syntax.Tree.typefield.
-
BOUNDS
public static final Name BOUNDS
Name of thehydra.scala.syntax.Tree.boundsfield.
-
PAT
public static final Name PAT
Name of thehydra.scala.syntax.Tree.patfield.
-
MEMBER
public static final Name MEMBER
Name of thehydra.scala.syntax.Tree.memberfield.
-
CTOR
public static final Name CTOR
Name of thehydra.scala.syntax.Tree.ctorfield.
-
TEMPLATE
public static final Name TEMPLATE
Name of thehydra.scala.syntax.Tree.templatefield.
-
MOD
public static final Name MOD
Name of thehydra.scala.syntax.Tree.modfield.
-
ENUMERATOR
public static final Name ENUMERATOR
Name of thehydra.scala.syntax.Tree.enumeratorfield.
-
IMPORTER
public static final Name IMPORTER
Name of thehydra.scala.syntax.Tree.importerfield.
-
IMPORTEE
public static final Name IMPORTEE
Name of thehydra.scala.syntax.Tree.importeefield.
-
CASE_TREE
public static final Name CASE_TREE
Name of thehydra.scala.syntax.Tree.caseTreefield.
-
SOURCE
public static final Name SOURCE
Name of thehydra.scala.syntax.Tree.sourcefield.
-
-
Method Detail
-
accept
public abstract <R> R accept(Tree.Visitor<R> visitor)
Dispatch tovisitor.
-
hydraOrdinal
public abstract int hydraOrdinal()
-
-