Package io.trino.sql.tree
Class RevokeRoles
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.RevokeRoles
-
public class RevokeRoles extends Statement
-
-
Constructor Summary
Constructors Constructor Description RevokeRoles(NodeLocation location, Set<Identifier> roles, Set<PrincipalSpecification> grantees, boolean adminOption, Optional<GrantorSpecification> grantor)RevokeRoles(Set<Identifier> roles, Set<PrincipalSpecification> grantees, boolean adminOption, Optional<GrantorSpecification> grantor)
-
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()Set<PrincipalSpecification>getGrantees()Optional<GrantorSpecification>getGrantor()Set<Identifier>getRoles()inthashCode()booleanisAdminOption()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
RevokeRoles
public RevokeRoles(NodeLocation location, Set<Identifier> roles, Set<PrincipalSpecification> grantees, boolean adminOption, Optional<GrantorSpecification> grantor)
-
RevokeRoles
public RevokeRoles(Set<Identifier> roles, Set<PrincipalSpecification> grantees, boolean adminOption, Optional<GrantorSpecification> grantor)
-
-
Method Detail
-
getRoles
public Set<Identifier> getRoles()
-
getGrantees
public Set<PrincipalSpecification> getGrantees()
-
isAdminOption
public boolean isAdminOption()
-
getGrantor
public Optional<GrantorSpecification> getGrantor()
-
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.
-
-