@Override public final boolean matches(final INode other, final Match match) { final int checkpoint = match.getCheckPoint(); for (final INode alternative : _alternatives) { if (alternative.matches(other, match)) { return true; } match.restoreCheckPoint(checkpoint); } return false; } }
@Override public final boolean matchesCollection( final Role role, final INode position, final Match match, final BacktrackingInfo backtrackingInfo) { backtrackingInfo.stack.push(new PossibleMatch(position, match.getCheckPoint())); return _node.matches(position, match); }
@Override public boolean matches(final INode other, final Match match) { return child.matches(other, match); } }
@Override public boolean matches(final INode other, final Match match) { return other == null || other.isNull(); } }
@Override public final boolean matches(final INode other, final Match match) { final int checkpoint = match.getCheckPoint(); for (final INode alternative : _alternatives) { if (alternative.matches(other, match)) { return true; } match.restoreCheckPoint(checkpoint); } return false; } }
@Override public final boolean matchesCollection( final Role role, final INode position, final Match match, final BacktrackingInfo backtrackingInfo) { backtrackingInfo.stack.push(new PossibleMatch(position, match.getCheckPoint())); return _node.matches(position, match); }
@Override public final boolean matches(final INode other, final Match match) { final int checkpoint = match.getCheckPoint(); for (final INode alternative : _alternatives) { if (alternative.matches(other, match)) { return true; } match.restoreCheckPoint(checkpoint); } return false; } }
@Override public final boolean matchesCollection( final Role role, final INode position, final Match match, final BacktrackingInfo backtrackingInfo) { backtrackingInfo.stack.push(new PossibleMatch(position, match.getCheckPoint())); return _node.matches(position, match); }