@Test public void testTokenizer1() { String str = "ls -ltr \"|\" | grep -v hello"; ExpressionTokenizer t = new ExpressionTokenizer(str); assertEquals(Arrays.asList("ls -ltr \"|\"", "grep -v hello"), 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();  }