public static class EntryReader.Entry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
body
Complete body of the entry including the first line.
|
java.lang.String |
filename
Filename in which the entry was found.
|
java.lang.String |
firstLine
First line of the entry.
|
long |
lineNumber
Line number of first line of entry.
|
boolean |
shortEntry
True if this is a short entry (blank-line-separated).
|
| Constructor and Description |
|---|
Entry(java.lang.String firstLine,
java.lang.String body,
java.lang.String filename,
long lineNumber,
boolean shortEntry)
Create an entry.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription(@Nullable java.util.regex.Pattern re)
Return a substring of the entry body that matches the specified regular expression.
|
public final java.lang.String firstLine
public final java.lang.String body
public final boolean shortEntry
public final java.lang.String filename
public final long lineNumber
public Entry(java.lang.String firstLine,
java.lang.String body,
java.lang.String filename,
long lineNumber,
boolean shortEntry)
firstLine - first line of the entrybody - complete body of the entry including the first lineshortEntry - true if this is a short entry (blank-line-separated)filename - filename in which the entry was foundlineNumber - line number of first line of entrypublic java.lang.String getDescription(@Nullable java.util.regex.Pattern re)
re - regex to match