/* Generated By:JJTree: Do not edit this line. ORevokeStatement.java Version 4.3 */ /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ package com.orientechnologies.orient.core.sql.parser; import java.util.ArrayList; import java.util.List; import java.util.Map; public class ORevokeStatement extends OStatement { protected OPermission permission; protected List<OResourcePathItem> resourceChain = new ArrayList<OResourcePathItem>(); protected OIdentifier actor; public ORevokeStatement(int id) { super(id); } public ORevokeStatement(OrientSql p, int id) { super(p, id); } @Override public void toString(Map<Object, Object> params, StringBuilder builder) { builder.append("REVOKE "); permission.toString(params, builder); builder.append(" ON "); boolean first = true; for (OResourcePathItem res : resourceChain) { if (!first) { builder.append("."); } res.toString(params, builder); first = false; } builder.append(" FROM "); actor.toString(params, builder); } } /* JavaCC - OriginalChecksum=d483850d10e1562c1b942fcc249278eb (do not edit this line) */