@Test public void testParse() { final SubroutineDefinition definition = parser.parse("subroutine get_last_name(person_id, birth_dt_tm)"); assertThat(definition.getName()).isEqualTo("get_last_name"); assertThat(definition.getArgumentNames()).containsExactly("person_id", "birth_dt_tm"); }
public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } } }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  SubroutineDefinition parse(final String subroutineDefinition); }
SubroutineDefinitionParser { public SubroutineDefinition parse(final String subroutineDefinition) { if (subroutineDefinition == null) { throw new IllegalArgumentException("Subroutine definition cannot be null."); } final EtmPoint point = PointFactory.getPoint(getClass(), "parse(String)"); try { return new SubroutineDefinition(parseSubroutineName(subroutineDefinition), parseArgumentNames(subroutineDefinition)); } finally { point.collect(); } }  SubroutineDefinition parse(final String subroutineDefinition);  }