mk.fsgrep.match
Class MatchResult
java.lang.Object
mk.fsgrep.match.MatchResult
- All Implemented Interfaces:
- Formatable
public class MatchResult
- extends java.lang.Object
- implements Formatable
The match results of a file search.
- Author:
- Murali Krishnan
Field Summary |
static java.lang.String |
SEPARATOR
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
MatchResult
public MatchResult(TargetFile file)
encode
protected static java.lang.String encode(java.lang.String string)
getFilename
public java.lang.String getFilename()
getLineMatches
protected java.util.List<mk.fsgrep.match.MatchResult.Entry> getLineMatches()
setFilename
public void setFilename(java.lang.String val)
add
public void add(java.lang.String line)
add
public void add(int number,
java.lang.String line)
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toHtml
public java.lang.String toHtml()
- Specified by:
toHtml
in interface Formatable
toTargetFile
public TargetFile toTargetFile()
Copyright © 2009. All Rights Reserved.