MCPcopy Create free account
hub / github.com/atas76/openengine / parseAction

Method parseAction

src/main/java/org/fgn/parser/Parser.java:143–152  ·  view source on GitHub ↗
(Statement statement)

Source from the content-addressed store, hash-verified

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++);

Callers 1

parseMethod · 0.95

Calls 2

hasEntityMethod · 0.95
setActionMethod · 0.45

Tested by

no test coverage detected