(Statement statement)
| 141 | } |
| 142 | |
| 143 | private void parseAction(Statement statement) throws ParserException { |
| 144 | |
| 145 | String actionDescription = tokens.get(index++); |
| 146 | |
| 147 | if (ActionType.hasEntity(actionDescription)) { |
| 148 | statement.setAction(new Action(actionDescription)); |
| 149 | } else { |
| 150 | throw new ParserException("Unsupported action: " + actionDescription); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | private String getNextToken() { |
| 155 | return this.tokens.get(index++); |