Package io.trino.sql.tree
Class Comment
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.Comment
-
public final class Comment extends Statement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComment.Type
-
Constructor Summary
Constructors Constructor Description Comment(Comment.Type type, QualifiedName name, Optional<String> comment)Comment(NodeLocation location, Comment.Type type, QualifiedName name, Optional<String> comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C context)Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.booleanequals(Object obj)List<Node>getChildren()Optional<String>getComment()QualifiedNamegetName()Comment.TypegetType()inthashCode()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
Comment
public Comment(Comment.Type type, QualifiedName name, Optional<String> comment)
-
Comment
public Comment(NodeLocation location, Comment.Type type, QualifiedName name, Optional<String> comment)
-
-
Method Detail
-
getType
public Comment.Type getType()
-
getName
public QualifiedName getName()
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
getChildren
public List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-