public class LocationSpec extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANYLINE |
protected StringMatcher |
fileSpec |
protected int |
fromLine |
protected StringMatcher |
pathSpec |
protected int |
toLine |
Constructor and Description |
---|
LocationSpec(String pspec,
String fspec,
int line1,
int line2) |
Modifier and Type | Method and Description |
---|---|
static LocationSpec |
createLocationSpec(String s)
factory method that includes the parser
|
int |
getFromLine() |
int |
getLine() |
int |
getToLine() |
boolean |
includesLine(int line) |
boolean |
isAnyLine() |
boolean |
isLineInterval() |
boolean |
matchesFile(File f) |
boolean |
matchesFile(String pathName)
'pathName' has to use '/' as separators
|
String |
toString() |
public static final int ANYLINE
protected StringMatcher pathSpec
protected StringMatcher fileSpec
protected int fromLine
protected int toLine
public static LocationSpec createLocationSpec(String s)
public boolean matchesFile(File f)
public boolean isAnyLine()
public boolean isLineInterval()
public int getLine()
public int getFromLine()
public int getToLine()
public boolean matchesFile(String pathName)
public boolean includesLine(int line)