@Override public List<Comment> nestedComments() { if (nestedComments == null) { nestedComments = parserConf.commentParser().parseComments(offset, rawContent); } return nestedComments; }
@Override public RepeatParameters getRepeatParameters() { if (keyword != Keyword.Repeat) { throw new IllegalStateException( "Cannot retrieve RepeatParameters from a " + keyword + " part!"); } if (repeatParameters == null) { repeatParameters = parserConf.repeatParametersParser().parse(rawContent); } return repeatParameters; }
@Override public Table getExampleTable() { if (keyword != Keyword.Example) { throw new IllegalStateException( "Cannot retrieve an ExampleTable from a " + keyword + " part!"); } ensureParserConfIsDefined(); if (exampleTable == null) { exampleTable = parserConf.tableParser().parse(rawContent); } return exampleTable; }
@Override public final String rawContentWithoutComment() { return parserConf.commentParser().contentWithoutComment(rawContent()); }
@Override public String contentAfterAliasWithoutComment() { return parserConf.commentParser().contentWithoutComment(contentAfterAlias()); }