@Override public Node visitRevokeRoles(SqlBaseParser.RevokeRolesContext context) { return new RevokeRoles( getLocation(context), ImmutableSet.copyOf(getIdentifiers(context.roles().identifier())), ImmutableSet.copyOf(getPrincipalSpecifications(context.principal())), context.OPTION() != null, getGrantorSpecificationIfPresent(context.grantor())); }
@Override public Node visitGrantRoles(SqlBaseParser.GrantRolesContext context) { return new GrantRoles( getLocation(context), ImmutableSet.copyOf(getIdentifiers(context.roles().identifier())), ImmutableSet.copyOf(getPrincipalSpecifications(context.principal())), context.OPTION() != null, getGrantorSpecificationIfPresent(context.grantor())); }
@Override public Node visitRevokeRoles(SqlBaseParser.RevokeRolesContext context) { return new RevokeRoles( getLocation(context), ImmutableSet.copyOf(getIdentifiers(context.roles().identifier())), ImmutableSet.copyOf(getPrincipalSpecifications(context.principal())), context.OPTION() != null, getGrantorSpecificationIfPresent(context.grantor())); }
@Override public Node visitGrantRoles(SqlBaseParser.GrantRolesContext context) { return new GrantRoles( getLocation(context), ImmutableSet.copyOf(getIdentifiers(context.roles().identifier())), ImmutableSet.copyOf(getPrincipalSpecifications(context.principal())), context.OPTION() != null, getGrantorSpecificationIfPresent(context.grantor())); }