Package io.prestosql.sql.tree
Class Comment
- java.lang.Object
-
- io.prestosql.sql.tree.Node
-
- io.prestosql.sql.tree.Statement
-
- io.prestosql.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, java.util.Optional<java.lang.String> comment)Comment(NodeLocation location, Comment.Type type, QualifiedName name, java.util.Optional<java.lang.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(java.lang.Object obj)java.util.List<Node>getChildren()java.util.Optional<java.lang.String>getComment()QualifiedNamegetName()Comment.TypegetType()inthashCode()java.lang.StringtoString()-
Methods inherited from class io.prestosql.sql.tree.Node
getLocation
-
-
-
-
Constructor Detail
-
Comment
public Comment(Comment.Type type, QualifiedName name, java.util.Optional<java.lang.String> comment)
-
Comment
public Comment(NodeLocation location, Comment.Type type, QualifiedName name, java.util.Optional<java.lang.String> comment)
-
-
Method Detail
-
getType
public Comment.Type getType()
-
getName
public QualifiedName getName()
-
getComment
public java.util.Optional<java.lang.String> getComment()
-
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 java.util.List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-