public final class BlockMarkers
extends java.lang.Object
Constructor and Description |
---|
BlockMarkers(java.lang.String start,
java.lang.String end)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEnd(java.lang.CharSequence text)
Determines if the specified string signifies the end of the block.
|
boolean |
isStart(java.lang.CharSequence text)
Determines if the specified string signifies the start of the block.
|
java.lang.String |
toString() |
public BlockMarkers(java.lang.String start, java.lang.String end)
start
- The string that indicates the start of the block.end
- The string that indicates the end of the block.public boolean isStart(java.lang.CharSequence text)
text
- The text.true
if the specified text signifies the start of the block; otherwise false
.public boolean isEnd(java.lang.CharSequence text)
text
- The text.true
if the specified text signifies the end of the block; otherwise false
.public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2003-2018 Simon Harris. All rights reserved.