private static void checkRange( ContentElement ce ){ List<SrcSpan> eil = new ArrayList<SrcSpan>(); for( Span s: ce.getFormatSpans( FormatType.BOLD ) ) eil.add( s.getSrcSpan() ); for( Span s: ce.getFormatSpans( FormatType.ITALIC ) ) eil.add( s.getSrcSpan() ); for( Span s: ce.getFormatSpans( FormatType.MATH ) ) eil.add( s.getSrcSpan() ); for( Span s: ce.getFormatSpans( FormatType.TAG ) ) eil.add( s.getSrcSpan() ); for( Span s: ce.getFormatSpans( FormatType.NOWIKI ) ) eil.add( s.getSrcSpan() ); for( Link l: ce.getLinks()) eil.add( l.getSrcSpan() ); for( Template t: ce.getTemplates() ) eil.add( t.getSrcSpan() ); ce.setSrcSpan( getEvalInfo( ce.getSrcSpan(), eil) ); }
.get(content.size() - 1).getSrcSpan().getEnd()));
private static void checkRange( SectionContent s ){ List<SrcSpan> eil = new ArrayList<SrcSpan>(); if( s.getTitleElement()!= null ){ checkRange( s.getTitleElement() ); eil.add( s.getTitleElement().getSrcSpan() ); } for( Paragraph p: s.getParagraphs() ){ checkRange( p ); eil.add( p.getSrcSpan() ); } for( DefinitionList dl: s.getDefinitionLists() ){ checkRange( dl ); eil.add( dl.getSrcSpan() ); } for( NestedListContainer nl: s.getNestedLists() ){ checkRange( nl ); eil.add( nl.getSrcSpan() ); } for( Table t: s.getTables() ){ checkRange( t ); eil.add( t.getSrcSpan() ); } s.setSrcSpan( getEvalInfo( s.getSrcSpan(), eil)); }