com.sonar.sslr.api
Class Comments

java.lang.Object
  extended by com.sonar.sslr.api.Comments
All Implemented Interfaces:
Iterable<Token>

public class Comments
extends Object
implements Iterable<Token>


Constructor Summary
Comments(Map<Integer,Token> comments)
           
 
Method Summary
 Token getCommentAtLine(int line)
           
static boolean isBlankComment(String comment)
           
 boolean isThereCommentBeforeLine(int line)
           
 Iterator<Token> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comments

public Comments(Map<Integer,Token> comments)
Method Detail

iterator

public Iterator<Token> iterator()
Specified by:
iterator in interface Iterable<Token>

getCommentAtLine

public Token getCommentAtLine(int line)

isBlankComment

public static boolean isBlankComment(String comment)

isThereCommentBeforeLine

public boolean isThereCommentBeforeLine(int line)

size

public int size()


Copyright © 2011 SonarSource. All Rights Reserved.