Beispiel #1
0
 @Override
 public List<Comment> nestedComments() {
   if (nestedComments == null) {
     nestedComments = parserConf.commentParser().parseComments(offset, rawContent);
   }
   return nestedComments;
 }
Beispiel #2
0
 @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;
 }
Beispiel #3
0
 @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;
 }
Beispiel #4
0
 @Override
 public final String rawContentWithoutComment() {
   return parserConf.commentParser().contentWithoutComment(rawContent());
 }
Beispiel #5
0
 @Override
 public String contentAfterAliasWithoutComment() {
   return parserConf.commentParser().contentWithoutComment(contentAfterAlias());
 }