public static final class LaTeXTokeniser.PatternTerminator extends java.lang.Object implements LaTeXTokeniser.Terminator
Terminator represents terminators specified as regular
expressions. This is generally only useful for hunting out the end of verbatim
environments.| 构造器和说明 |
|---|
PatternTerminator(java.util.regex.Pattern terminatorPattern) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
matchesAt(WorkingDocument workingDocument,
int index)
Tests whether this Terminator matches the
WorkingDocument at the given index. |
int |
nextMatchFrom(WorkingDocument workingDocument,
int index)
Finds the next match of this Terminator in the given
WorkingDocument starting
at the given index. |
java.lang.String |
toString() |
public int matchesAt(WorkingDocument workingDocument, int index)
LaTeXTokeniser.TerminatorWorkingDocument at the given index.matchesAt 在接口中 LaTeXTokeniser.TerminatorworkingDocument - WorkingDocument to checkindex - index to match atpublic int nextMatchFrom(WorkingDocument workingDocument, int index)
LaTeXTokeniser.TerminatorWorkingDocument starting
at the given index.nextMatchFrom 在接口中 LaTeXTokeniser.TerminatorworkingDocument - WorkingDocument to checkindex - index to search frompublic java.lang.String toString()
toString 在类中 java.lang.Object