com.puppycrawl.tools.checkstyle.api
Interface TextBlock


public interface TextBlock

A block of text from an inputfile that does not necessarily have any grammatical structure.

Author:
lkuehne

Method Summary
 int getEndLineNo()
          The last line of the text block in the inputfile.
 int getStartLineNo()
          The line in the inputfile where the text block starts.
 java.lang.String[] getText()
          The text content of the text block.
 

Method Detail

getText

public java.lang.String[] getText()
The text content of the text block. Each line is represented by one array entry. The linebreak characters are not part of the text content.

Returns:
the text content of the text block.

getStartLineNo

public int getStartLineNo()
The line in the inputfile where the text block starts. Counting starts from 1.

Returns:
first line of the text block

getEndLineNo

public int getEndLineNo()
The last line of the text block in the inputfile. Counting starts from 1.

Returns:
last line of the text block

Back to the Checkstyle Home Page