@Test public void testTokenizer3() { String str = "ls -ltr \"|\" \">>>\" >> 2 | grep -v hello | > asd"; ExpressionTokenizer t = new ExpressionTokenizer(str); assertEquals(Arrays.asList("ls -ltr \"|\" \">>>\"", ">> 2", "grep -v hello", "> asd"), t.getCommandStrings()); }
public List<String> getCommandStrings() { return commandStrings; }
ExpressionTokenizer { public List<String> getCommandStrings() { return commandStrings; } }
ExpressionTokenizer { public List<String> getCommandStrings() { return commandStrings; } ExpressionTokenizer(String arg); }
ExpressionTokenizer { public List<String> getCommandStrings() { return commandStrings; } ExpressionTokenizer(String arg); List<String> getCommandStrings(); }
ExpressionTokenizer { public List<String> getCommandStrings() { return commandStrings; } ExpressionTokenizer(String arg); List<String> getCommandStrings();  }