org.parboiled.matchers
Class CharIgnoreCaseMatcher
java.lang.Object
org.parboiled.trees.ImmutableGraphNode<Matcher>
org.parboiled.matchers.AbstractMatcher
org.parboiled.matchers.CharIgnoreCaseMatcher
- All Implemented Interfaces:
- java.lang.Cloneable, Matcher, Rule, GraphNode<Matcher>
public class CharIgnoreCaseMatcher
- extends AbstractMatcher
A Matcher
matching a single character case-independently.
Methods inherited from class org.parboiled.matchers.AbstractMatcher |
areMismatchesMemoed, areSubnodesSuppressed, getLabel, getSubContext, getTag, hasCustomLabel, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressNode, suppressSubnodes, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
charLow
public final char charLow
charUp
public final char charUp
CharIgnoreCaseMatcher
public CharIgnoreCaseMatcher(char character)
match
public boolean match(MatcherContext context)
- Description copied from interface:
Matcher
- Tries a match on the given MatcherContext.
- Parameters:
context
- the MatcherContext
- Returns:
- true if the match was successful
accept
public <R> R accept(MatcherVisitor<R> visitor)
- Description copied from interface:
Matcher
- Accepts the given matcher visitor.
- Parameters:
visitor
- the visitor
- Returns:
- the value returned by the given visitor