public static List<Token> scan(List<Token> tokens, Options options) { for (Token token : tokens) { Grabber t = Grabber.scanForAll(token, options); if (t != null) { token.tag(t); } } return tokens; }
public static List<Token> scan(List<Token> tokens, Options options) { for (Token token : tokens) { Pointer t = Pointer.scanForAll(token, options); if (t != null) { token.tag(t); } } return tokens; }
public static List<Token> scan(List<Token> tokens, Options options) { for (Token token : tokens) { TimeZone t = TimeZone.scanForAll(token, options); if (t != null) { token.tag(t); } } return tokens; }
public static List<Token> scan(List<Token> tokens, Options options) { for (Token token : tokens) { Separator t; t = SeparatorComma.scan(token, options); if (t != null) { token.tag(t); } t = SeparatorSlashOrDash.scan(token, options); if (t != null) { token.tag(t); } t = SeparatorAt.scan(token, options); if (t != null) { token.tag(t); } t = SeparatorIn.scan(token, options); if (t != null) { token.tag(t); } } return tokens; }
public static List<Token> scan(List<Token> tokens, Options options) { for (int i = 0; i < tokens.size(); i++) { Token token = tokens.get(i); Token postToken = null; if (i < tokens.size() - 1) { postToken = tokens.get(i + 1); } Scalar t; t = Scalar.scan(token, postToken, options); if (t != null) { token.tag(t); } t = ScalarDay.scan(token, postToken, options); if (t != null) { token.tag(t); } t = ScalarMonth.scan(token, postToken, options); if (t != null) { token.tag(t); } t = ScalarYear.scan(token, postToken, options); if (t != null) { token.tag(t); } } return tokens; }
public static List<Token> scan(List<Token> tokens, Options options) { for (Token token : tokens) { Tag<?> t; t = RepeaterMonthName.scan(token); if (t != null) { token.tag(t); } t = RepeaterDayName.scan(token); if (t != null) { token.tag(t); } t = RepeaterDayPortion.scan(token); if (t != null) { token.tag(t); } t = RepeaterTime.scan(token, tokens, options); if (t != null) { token.tag(t); } t = RepeaterUnit.scan(token); if (t != null) { token.tag(t); } } return tokens; }