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

Method parseAction

src/main/java/org/ttn/parser/ParserUtil.java:111–117  ·  view source on GitHub ↗
(List<String> tokens)

Source from the content-addressed store, hash-verified

109 }
110
111 public static Action parseAction(List<String> tokens) throws ParserException {
112 ActionType actionType = getActionType(tokens.get(0));
113 if (tokens.size() > 1 && ":".equals(tokens.get(1))) {
114 return new Action(actionType, parseActionParameters(tokens.subList(2, tokens.size())));
115 }
116 return new Action(actionType);
117 }
118
119 public static int parseTime(List<String> tokens) throws ParserException, NumberFormatException {
120 int minutes = Integer.parseInt(tokens.get(0));

Callers 2

parseStatementMethod · 0.95

Calls 3

getActionTypeMethod · 0.95
parseActionParametersMethod · 0.95
equalsMethod · 0.45

Tested by 1