cpmake
Class GrepResult

java.lang.Object
  extended bycpmake.GrepResult

public class GrepResult
extends java.lang.Object

GrepResult is the returned from a call to CPMake.grep. This contains the lines and line numbers of the file that matches the grep pattern.


Method Summary
 java.lang.Integer[] getLineNumbers()
          Returns an array of integers where each element in the array is the line number in the file that matches the grep pattern.
 java.lang.String[] getResults()
          Returns an array of strings where each element of the array is the line in the file that matches the grep pattern.
 boolean isFound()
          Returns true if any matches were found in the file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFound

public boolean isFound()
Returns true if any matches were found in the file.


getResults

public java.lang.String[] getResults()
Returns an array of strings where each element of the array is the line in the file that matches the grep pattern.


getLineNumbers

public java.lang.Integer[] getLineNumbers()
Returns an array of integers where each element in the array is the line number in the file that matches the grep pattern.