Package io.trino.sql.tree
Class SetRole
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.SetRole
-
public class SetRole extends Statement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetRole.Type
-
Constructor Summary
Constructors Constructor Description SetRole(NodeLocation location, SetRole.Type type, Optional<Identifier> role)SetRole(SetRole.Type type, Optional<Identifier> role)
-
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 o)List<? extends Node>getChildren()Optional<Identifier>getRole()SetRole.TypegetType()inthashCode()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
SetRole
public SetRole(SetRole.Type type, Optional<Identifier> role)
-
SetRole
public SetRole(NodeLocation location, SetRole.Type type, Optional<Identifier> role)
-
-
Method Detail
-
getType
public SetRole.Type getType()
-
getRole
public Optional<Identifier> getRole()
-
getChildren
public List<? extends Node> getChildren()
- Specified by:
getChildrenin classNode
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
-