org.tinyjee.maven.dim.sources
Class AOPLikeSnippetSelector.LinesIterator

java.lang.Object
  extended by org.tinyjee.maven.dim.sources.AOPLikeSnippetSelector.LinesIterator
All Implemented Interfaces:
Iterator<Integer>
Enclosing class:
AOPLikeSnippetSelector

protected static class AOPLikeSnippetSelector.LinesIterator
extends Object
implements Iterator<Integer>


Field Summary
protected  String contentString
           
protected  URL contentUrl
           
protected  boolean expandSnippets
           
protected  AbstractSelectableJavaEntitiesList<AbstractJavaEntity> matchingEntities
           
 
Constructor Summary
protected AOPLikeSnippetSelector.LinesIterator(AbstractSelectableJavaEntitiesList<AbstractJavaEntity> matchingEntities, URL contentUrl, String contentString, boolean expandSnippets)
           
 
Method Summary
protected  int countLines(String text)
           
protected  Iterator<Integer> getSourceIterator()
           
 boolean hasNext()
           
 Integer next()
           
 void remove()
           
protected  void selectBeanProperty(AbstractJavaEntity entity, Set<Integer> selectedLines)
           
protected  void selectCommentAbove(int firstLine, Set<Integer> selectedLines)
           
protected  void selectLines(AbstractJavaEntity entity, Set<Integer> selectedLines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchingEntities

protected final AbstractSelectableJavaEntitiesList<AbstractJavaEntity> matchingEntities

contentUrl

protected final URL contentUrl

contentString

protected final String contentString

expandSnippets

protected final boolean expandSnippets
Constructor Detail

AOPLikeSnippetSelector.LinesIterator

protected AOPLikeSnippetSelector.LinesIterator(AbstractSelectableJavaEntitiesList<AbstractJavaEntity> matchingEntities,
                                               URL contentUrl,
                                               String contentString,
                                               boolean expandSnippets)
Method Detail

getSourceIterator

protected Iterator<Integer> getSourceIterator()

selectLines

protected void selectLines(AbstractJavaEntity entity,
                           Set<Integer> selectedLines)
                    throws IOException
Throws:
IOException

selectCommentAbove

protected void selectCommentAbove(int firstLine,
                                  Set<Integer> selectedLines)
                           throws IOException
Throws:
IOException

countLines

protected int countLines(String text)

selectBeanProperty

protected void selectBeanProperty(AbstractJavaEntity entity,
                                  Set<Integer> selectedLines)
                           throws IOException
Throws:
IOException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Integer>

next

public Integer next()
Specified by:
next in interface Iterator<Integer>

remove

public void remove()
Specified by:
remove in interface Iterator<Integer>