=head1 NAME

Devel::PerlySense::Bookmark::Match - A Bookmark match


A match has a Location (file + line), and a corresponding Definition
that caused it to match.


use strict;
use warnings;

package Devel::PerlySense::Bookmark::Match;
  $Devel::PerlySense::Bookmark::Match::VERSION = '0.0196';

use Spiffy -Base;
use Carp;
use Data::Dumper;

use Devel::PerlySense;
use Devel::PerlySense::Document::Location;


=head2 oLocation

The Document::Location where this match matched.

field "oLocation" => undef;

=head2 oDefinition

Bookmark::Definition that was used to match this.

field "oDefinition" => undef;

=head2 line

The source line where the match matched.

Default: ""

field "line" => "";

=head2 text

The textual match that was captured (or the entire line).

Default: ""

field "text" => "";

=head1 METHODS

=head2 new(file, row, line, text, oDefinition)

Create new PerlySense::Bookmark::Match object.

sub new {
    my ($file, $row, $line, $text, $oDefinition) = Devel::PerlySense::Util::aNamedArg(["file", "row", "line", "text", "oDefinition"], @_);

    $self = bless {}, $self;    #Create the object. It looks weird because of Spiffy
        file => $file,
        row => $row,
        col => 0,  #When a col is needed, add it here




=head1 AUTHOR

Johan Lindström, C<< <johanl[ÄT]DarSerMan.com> >>

=head1 BUGS

Please report any bugs or feature requests to
C<bug-devel-perlysense@rt.cpan.org>, or through the web interface at
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.



Copyright 2005 Johan Lindström, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.