Package io.trino.sql.tree
Class Node
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- Direct Known Subclasses:
CallArgument,DataTypeParameter,ExplainOption,Expression,FetchFirst,FrameBound,GroupBy,GroupingElement,Limit,MeasureDefinition,MergeCase,Offset,OrderBy,PathElement,PathSpecification,PatternQuantifier,PatternSearchMode,ProcessingMode,Property,QueryPeriod,Relation,RowDataType.Field,RowPattern,Select,SelectItem,SkipTo,SortItem,Statement,SubsetDefinition,TableElement,TransactionMode,UpdateAssignment,VariableDefinition,WindowDefinition,WindowFrame,WindowReference,WindowSpecification,With,WithQuery
public abstract class Node extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNode(Optional<NodeLocation> location)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <R,C>
Raccept(AstVisitor<R,C> visitor, C context)Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.abstract booleanequals(Object obj)abstract List<? extends Node>getChildren()Optional<NodeLocation>getLocation()abstract inthashCode()booleanshallowEquals(Node other)Compare with another node by considering internal state excluding any Node returned by getChildren()abstract StringtoString()
-
-
-
Constructor Detail
-
Node
protected Node(Optional<NodeLocation> location)
-
-
Method Detail
-
accept
protected <R,C> R accept(AstVisitor<R,C> visitor, C context)
Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
getLocation
public Optional<NodeLocation> getLocation()
-
shallowEquals
public boolean shallowEquals(Node other)
Compare with another node by considering internal state excluding any Node returned by getChildren()
-
-