Class Comments::Comment

A JavaScript source code comment.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getLine

Gets the ith line of comment text.

getLocation

Gets this element’s location.

getNextToken

Gets the next token after this comment.

getNumLines

Gets the number of lines covered by this element.

getText

Gets the text of this comment, not including delimiters.

getTopLevel

Gets the toplevel element this comment belongs to.

onLines

Holds if this comment spans lines start to end (inclusive) in file f.

toString

Gets a textual representation of this element.

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable