@Test public void testIdentifier() throws IOException { java.lang.String qlForm = "form taxOfficeExample { \"q1?\" value: string = var }"; Form form = ASTGenerator.getForm(qlForm); List<Item> questions = form.getQuestions(); ComputedQuestion question = (ComputedQuestion) questions.get(0); assertThat(question.getType(), instanceOf(String.class)); assertThat(question.getComputedValue(), instanceOf(Identifier.class)); }
public Expression getComputedValue() { return computedValue; }
ComputedQuestion extends Question { public Expression getComputedValue() { return computedValue; } }
ComputedQuestion extends Question { public Expression getComputedValue() { return computedValue; } ComputedQuestion(int lineNumber, String question, String value, ValueType type, Expression computedValue); }
ComputedQuestion extends Question { public Expression getComputedValue() { return computedValue; } ComputedQuestion(int lineNumber, String question, String value, ValueType type, Expression computedValue); Expression getComputedValue(); @Override T accept(ItemVisitor<T> visitor); }
ComputedQuestion extends Question { public Expression getComputedValue() { return computedValue; } ComputedQuestion(int lineNumber, String question, String value, ValueType type, Expression computedValue); Expression getComputedValue(); @Override T accept(ItemVisitor<T> visitor);  }