test_class.declarator: resolver
test_class.original_string: DynamicJsonObjectResolver resolver;
test_class.type: DynamicJsonObjectResolver
test_class.var_name: resolver
test_class.declarator: function = null
test_class.original_string: Function function = null;
test_class.type: Function
test_class.var_name: function
test_class.file: step-plans/step-plans-parser/src/test/java/step/repositories/parser/CustomDescriptionStepParserTest.java
test_class.identifier: CustomDescriptionStepParserTest
test_class.superclass: extends AbstractStepParserTest
test_case.body: @Test
  	public void testSetWithExpression() throws Exception {
  		List<AbstractStep> steps = new ArrayList<>();
  		steps.add(step("Set a=b.c d= e.getF() num=1"));
  		
  		List<AbstractArtefact> children = getChildren(parse(steps));
  		Set set0 = (Set) children.get(0);
  		Assert.assertEquals("a",set0.getKey().getValue());
  		Assert.assertEquals("b.c",set0.getValue().getExpression());
  		
  		Set set1 = (Set) children.get(1);
  		Assert.assertEquals("d",set1.getKey().getValue());
  		Assert.assertEquals("e.getF()",set1.getValue().getExpression());
  		
  		Set set2 = (Set) children.get(2);
  		Assert.assertEquals("num",set2.getKey().getValue());
  		Assert.assertEquals("1",set2.getValue().getExpression());
  	}
test_case.class_method_signature: CustomDescriptionStepParserTest.testSetWithExpression()
test_case.full_signature: @Test public void testSetWithExpression()
test_case.identifier: testSetWithExpression
test_case.invocations: add step getChildren parse get assertEquals getValue getKey assertEquals getExpression getValue get assertEquals getValue getKey assertEquals getExpression getValue get assertEquals getValue getKey assertEquals getExpression getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetWithExpression()
focal_class.file: step-plans/step-plans-parser/src/main/java/step/repositories/parser/CustomDescriptionStepParser.java
focal_class.identifier: CustomDescriptionStepParser
focal_class.interfaces: implements StepParser<DescriptionStep>
focal_class.class_method_signature: CustomDescriptionStepParser.getParserScoreForStep(AbstractStep step)
focal_class.full_signature: @Override public int getParserScoreForStep(AbstractStep step)
focal_class.identifier: getParserScoreForStep
focal_class.modifiers: @Override public
focal_class.parameters: (AbstractStep step)
focal_class.return: int
focal_class.signature: int getParserScoreForStep(AbstractStep step)
focal_class.class_method_signature: CustomDescriptionStepParser.parseStep(ParsingContext parsingContext, DescriptionStep step)
focal_class.full_signature: @Override public void parseStep(ParsingContext parsingContext, DescriptionStep step)
focal_class.identifier: parseStep
focal_class.modifiers: @Override public
focal_class.parameters: (ParsingContext parsingContext, DescriptionStep step)
focal_class.return: void
focal_class.signature: void parseStep(ParsingContext parsingContext, DescriptionStep step)
focal_class.class_method_signature: CustomDescriptionStepParser.parse(String expression)
focal_class.full_signature: private ParseContext parse(String expression)
focal_class.identifier: parse
focal_class.modifiers: private
focal_class.parameters: (String expression)
focal_class.return: ParseContext
focal_class.signature: ParseContext parse(String expression)
focal_method.body: private ParseContext parse(String expression) {
  		BaseErrorListener baseErrorListener = new BaseErrorListener() {
  			@Override
  			public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line,
  					int charPositionInLine, String msg, RecognitionException e) {
  				throw new IllegalStateException(msg, e);
  			}
  		};
  
  		DescriptionStepLexer lexer = new DescriptionStepLexer(new ANTLRInputStream(expression));
  		lexer.addErrorListener(baseErrorListener);
  		DescriptionStepParser parser = new DescriptionStepParser(new CommonTokenStream(lexer));
  		parser.addErrorListener(baseErrorListener);
  		return parser.parse();
  	}
focal_method.class_method_signature: CustomDescriptionStepParser.parse(String expression)
focal_method.full_signature: private ParseContext parse(String expression)
focal_method.identifier: parse
focal_method.invocations: addErrorListener addErrorListener parse
focal_method.modifiers: private
focal_method.parameters: (String expression)
focal_method.return: ParseContext
focal_method.signature: ParseContext parse(String expression)