Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: joelib/util/types/StringPattern.java


1   ///////////////////////////////////////////////////////////////////////////////
2   //  Filename: $RCSfile: StringPattern.java,v $
3   //  Purpose:  Atom representation.
4   //  Language: Java
5   //  Compiler: JDK 1.4
6   //  Authors:  Joerg K. Wegner
7   //  Version:  $Revision: 1.3 $
8   //            $Date: 2003/08/19 13:11:29 $
9   //            $Author: wegner $
10  //
11  //  Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
12  //
13  //  This program is free software; you can redistribute it and/or modify
14  //  it under the terms of the GNU General Public License as published by
15  //  the Free Software Foundation version 2 of the License.
16  //
17  //  This program is distributed in the hope that it will be useful,
18  //  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  //  GNU General Public License for more details.
21  ///////////////////////////////////////////////////////////////////////////////
22  package joelib.util.types;
23  
24  
25  /*==========================================================================*
26   * IMPORTS
27   *========================================================================== */
28  import java.util.regex.*;
29  
30  
31  /*==========================================================================*
32   * CLASS DECLARATION
33   *========================================================================== */
34  
35  /**
36   * {@link String} and regular expression {@link Pattern}.
37   *
38   * @author     wegnerj
39   * @license GPL
40   * @cvsversion    $Revision: 1.3 $, $Date: 2003/08/19 13:11:29 $
41   */
42  public class StringPattern implements java.io.Serializable
43  {
44      //~ Instance fields ////////////////////////////////////////////////////////
45  
46      /**
47       *  Description of the Field
48       */
49      public Pattern p;
50  
51      /*-------------------------------------------------------------------------*
52       * public member variables
53       *------------------------------------------------------------------------- */
54  
55      /**
56       *  Description of the Field
57       */
58      public String s;
59  
60      //~ Constructors ///////////////////////////////////////////////////////////
61  
62      /*-------------------------------------------------------------------------*
63       * constructor
64       *------------------------------------------------------------------------- */
65  
66      /**
67       *  Constructor for the StringString object
68       *
69       * @param  _s1  Description of the Parameter
70       * @param  _s2  Description of the Parameter
71       */
72      public StringPattern(String _s, Pattern _p)
73      {
74          s = _s;
75          p = _p;
76      }
77  }
78  ///////////////////////////////////////////////////////////////////////////////
79  //  END OF FILE.
80  ///////////////////////////////////////////////////////////////////////////////