randoop.experiments
Class OneTargetPerLine
Object
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
OneTargetPerLine(String[] args)
First argument is the prefix, second argument is the name of the file
containing the targets. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneTargetPerLine
public OneTargetPerLine(String[] args)
- First argument is the prefix, second argument is the name of the file
containing the targets.
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