Package io.trino.sql.tree
Class Revoke
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Statement
-
- io.trino.sql.tree.Revoke
-
public class Revoke extends Statement
-
-
Constructor Summary
Constructors Constructor Description Revoke(boolean grantOptionFor, Optional<List<String>> privileges, Optional<GrantOnType> type, QualifiedName name, PrincipalSpecification grantee)Revoke(NodeLocation location, boolean grantOptionFor, Optional<List<String>> privileges, Optional<GrantOnType> type, QualifiedName name, PrincipalSpecification grantee)
-
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()PrincipalSpecificationgetGrantee()QualifiedNamegetName()Optional<List<String>>getPrivileges()Optional<GrantOnType>getType()inthashCode()booleanisGrantOptionFor()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
Revoke
public Revoke(boolean grantOptionFor, Optional<List<String>> privileges, Optional<GrantOnType> type, QualifiedName name, PrincipalSpecification grantee)
-
Revoke
public Revoke(NodeLocation location, boolean grantOptionFor, Optional<List<String>> privileges, Optional<GrantOnType> type, QualifiedName name, PrincipalSpecification grantee)
-
-
Method Detail
-
isGrantOptionFor
public boolean isGrantOptionFor()
-
getType
public Optional<GrantOnType> getType()
-
getName
public QualifiedName getName()
-
getGrantee
public PrincipalSpecification getGrantee()
-
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
-
-