|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Helpviewer.GreaseMonkey.GreaseMonkeyUrlMatcher</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric5.Helpviewer.GreaseMonkey.GreaseMonkeyUrlMatcher</h1> |
|
24 <p> |
|
25 Module implementing the GreaseMonkey URL matcher. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#GreaseMonkeyUrlMatcher">GreaseMonkeyUrlMatcher</a></td> |
|
35 <td>Class implementing the GreaseMonkey URL matcher.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr> |
|
41 <td><a href="#wildcardMatch">wildcardMatch</a></td> |
|
42 <td>Module function implementing a special wildcard matcher.</td> |
|
43 </tr> |
|
44 </table> |
|
45 <hr /><hr /> |
|
46 <a NAME="GreaseMonkeyUrlMatcher" ID="GreaseMonkeyUrlMatcher"></a> |
|
47 <h2>GreaseMonkeyUrlMatcher</h2> |
|
48 <p> |
|
49 Class implementing the GreaseMonkey URL matcher. |
|
50 </p> |
|
51 <h3>Derived from</h3> |
|
52 object |
|
53 <h3>Class Attributes</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Class Methods</h3> |
|
58 <table> |
|
59 <tr><td>None</td></tr> |
|
60 </table> |
|
61 <h3>Methods</h3> |
|
62 <table> |
|
63 <tr> |
|
64 <td><a href="#GreaseMonkeyUrlMatcher.__init__">GreaseMonkeyUrlMatcher</a></td> |
|
65 <td>Constructor</td> |
|
66 </tr><tr> |
|
67 <td><a href="#GreaseMonkeyUrlMatcher.__parsePattern">__parsePattern</a></td> |
|
68 <td>Private method to parse the match pattern.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#GreaseMonkeyUrlMatcher.match">match</a></td> |
|
71 <td>Public method to match the given URL.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#GreaseMonkeyUrlMatcher.pattern">pattern</a></td> |
|
74 <td>Public method to get the match pattern.</td> |
|
75 </tr> |
|
76 </table> |
|
77 <h3>Static Methods</h3> |
|
78 <table> |
|
79 <tr><td>None</td></tr> |
|
80 </table> |
|
81 <a NAME="GreaseMonkeyUrlMatcher.__init__" ID="GreaseMonkeyUrlMatcher.__init__"></a> |
|
82 <h4>GreaseMonkeyUrlMatcher (Constructor)</h4> |
|
83 <b>GreaseMonkeyUrlMatcher</b>(<i>pattern</i>) |
|
84 <p> |
|
85 Constructor |
|
86 </p><dl> |
|
87 <dt><i>pattern</i></dt> |
|
88 <dd> |
|
89 pattern to be used for the matching (string) |
|
90 </dd> |
|
91 </dl><a NAME="GreaseMonkeyUrlMatcher.__parsePattern" ID="GreaseMonkeyUrlMatcher.__parsePattern"></a> |
|
92 <h4>GreaseMonkeyUrlMatcher.__parsePattern</h4> |
|
93 <b>__parsePattern</b>(<i>pattern</i>) |
|
94 <p> |
|
95 Private method to parse the match pattern. |
|
96 </p><dl> |
|
97 <dt><i>pattern</i></dt> |
|
98 <dd> |
|
99 match pattern to be used (string) |
|
100 </dd> |
|
101 </dl><a NAME="GreaseMonkeyUrlMatcher.match" ID="GreaseMonkeyUrlMatcher.match"></a> |
|
102 <h4>GreaseMonkeyUrlMatcher.match</h4> |
|
103 <b>match</b>(<i>urlString</i>) |
|
104 <p> |
|
105 Public method to match the given URL. |
|
106 </p><dl> |
|
107 <dt><i>urlString</i></dt> |
|
108 <dd> |
|
109 URL to match (string) |
|
110 </dd> |
|
111 </dl><a NAME="GreaseMonkeyUrlMatcher.pattern" ID="GreaseMonkeyUrlMatcher.pattern"></a> |
|
112 <h4>GreaseMonkeyUrlMatcher.pattern</h4> |
|
113 <b>pattern</b>(<i></i>) |
|
114 <p> |
|
115 Public method to get the match pattern. |
|
116 </p><dl> |
|
117 <dt>Returns:</dt> |
|
118 <dd> |
|
119 match pattern (string) |
|
120 </dd> |
|
121 </dl> |
|
122 <div align="right"><a href="#top">Up</a></div> |
|
123 <hr /><hr /> |
|
124 <a NAME="wildcardMatch" ID="wildcardMatch"></a> |
|
125 <h2>wildcardMatch</h2> |
|
126 <b>wildcardMatch</b>(<i>string, pattern</i>) |
|
127 <p> |
|
128 Module function implementing a special wildcard matcher. |
|
129 </p><dl> |
|
130 <dt><i>string</i></dt> |
|
131 <dd> |
|
132 string to match (string) |
|
133 </dd><dt><i>pattern</i></dt> |
|
134 <dd> |
|
135 pattern to be used (string) |
|
136 </dd> |
|
137 </dl> |
|
138 <div align="right"><a href="#top">Up</a></div> |
|
139 <hr /> |
|
140 </body></html> |