randoop.experiments
Class OneTargetPerLine

Object
  extended by OneTargetPerLine
All Implemented Interfaces:
TargetMaker

public class OneTargetPerLine
extends Object
implements TargetMaker

A target maker that takes as input a file name with one target per line, and give back the targets (preprended with user-specified prefix/suffix) in the file. If prefix == "" then no prefix is used. Same for suffix.


Constructor Summary
Constructor and Description
OneTargetPerLine(String[] args)
          First argument is the prefix, second argument is the name of the file containing the targets.
 
Method Summary
Modifier and Type Method and Description
 String getNextTarget()
           
 boolean hasMoreTargets()
           
 int targetsLeft()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneTargetPerLine

public OneTargetPerLine(String[] args)
First argument is the prefix, second argument is the name of the file containing the targets.

Method Detail

getNextTarget

public String getNextTarget()
Specified by:
getNextTarget in interface TargetMaker
Returns:
The next target, or null if no more targets.

hasMoreTargets

public boolean hasMoreTargets()
Specified by:
hasMoreTargets in interface TargetMaker
Returns:
true if there are more targets left.

targetsLeft

public int targetsLeft()
Specified by:
targetsLeft in interface TargetMaker