Package io.prestosql.sql.tree
Class Revoke
- java.lang.Object
-
- io.prestosql.sql.tree.Node
-
- io.prestosql.sql.tree.Statement
-
- io.prestosql.sql.tree.Revoke
-
public class Revoke extends Statement
-
-
Constructor Summary
Constructors Constructor Description Revoke(boolean grantOptionFor, java.util.Optional<java.util.List<java.lang.String>> privileges, boolean table, QualifiedName tableName, PrincipalSpecification grantee)Revoke(NodeLocation location, boolean grantOptionFor, java.util.Optional<java.util.List<java.lang.String>> privileges, boolean table, QualifiedName tableName, 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(java.lang.Object obj)java.util.List<Node>getChildren()PrincipalSpecificationgetGrantee()java.util.Optional<java.util.List<java.lang.String>>getPrivileges()QualifiedNamegetTableName()inthashCode()booleanisGrantOptionFor()booleanisTable()java.lang.StringtoString()-
Methods inherited from class io.prestosql.sql.tree.Node
getLocation
-
-
-
-
Constructor Detail
-
Revoke
public Revoke(boolean grantOptionFor, java.util.Optional<java.util.List<java.lang.String>> privileges, boolean table, QualifiedName tableName, PrincipalSpecification grantee)
-
Revoke
public Revoke(NodeLocation location, boolean grantOptionFor, java.util.Optional<java.util.List<java.lang.String>> privileges, boolean table, QualifiedName tableName, PrincipalSpecification grantee)
-
-
Method Detail
-
isGrantOptionFor
public boolean isGrantOptionFor()
-
getPrivileges
public java.util.Optional<java.util.List<java.lang.String>> getPrivileges()
-
isTable
public boolean isTable()
-
getTableName
public QualifiedName getTableName()
-
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 java.util.List<Node> getChildren()
- Specified by:
getChildrenin classNode
-
-