public class Block extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Block.MatchType |
Modifier and Type | Field and Description |
---|---|
protected Matcher |
beginMatcher |
protected Block.MatchType |
beginMatchType |
protected String |
beginning |
protected Pattern |
beginPattern |
protected String |
end |
protected Matcher |
endMatcher |
protected Block.MatchType |
endMatchType |
protected Pattern |
endPattern |
protected String |
name |
Constructor and Description |
---|
Block() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
void |
init() |
MatchedBlock |
matchesBeginning(String message) |
Block.MatchType |
matchesEnd(String message) |
protected MatchedBlock |
newMatchBlock(Matcher matcher,
String message) |
protected String beginning
protected String end
protected String name
protected Block.MatchType beginMatchType
protected Block.MatchType endMatchType
protected Pattern beginPattern
protected Pattern endPattern
protected Matcher beginMatcher
protected Matcher endMatcher
public void init()
protected MatchedBlock newMatchBlock(Matcher matcher, String message)
public MatchedBlock matchesBeginning(String message)
public Block.MatchType matchesEnd(String message)
public String getName()
Copyright © 2004-2015. All Rights Reserved.