blob: 289a3452ebf844821a8942f4bcbeec6f0b0d203f [file] [log] [blame]
<html>
<body>
<p>
<font size="+1"><strong>Package org.eclipse.wst.xml.xpath.core</strong></font>
</p>
<hr>
<h2>
<font size="-1"><strong>org.eclipse.wst.xml.xpath.core</strong></font>
<br>
Class XPathCorePlugin</h2>
<br>
<hr>
<pre>public class <strong>XPathCorePlugin</strong>
extends Plugin</pre>The activator class controls the plug-in life cycle<hr>
<table width="100%" border="1">
<tr cols="2" bgcolor="#CCCCFF">
<td colspan="2" width="100%">
<h2>Field Summary</h2>
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code>PLUGIN_ID</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr bgcolor="#CCCCFF">
<td width="100%">
<h2>Constructor Summary</h2>
</td>
</tr>
<tr>
<td><code><strong>XPathCorePlugin</strong>()</code></td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr cols="2" bgcolor="#CCCCFF">
<td colspan="2" width="100%">
<h2>Method Summary</h2>
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public static org.eclipse.wst.xml.xpath.core.XPathCorePlugin</code></td><td width="" align="left"><code>getDefault()</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
Returns the shared instance</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code>start(BundleContext context)</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code>stop(BundleContext context)</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Field Detail
</h2>
</td>
</tr>
</table>
<h2>PLUGIN_ID</h2>
<p>
<code>public static java.lang.String <strong>PLUGIN_ID</strong></code>
</p>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Constructor Detail
</h2>
</td>
</tr>
</table>
<h2>XPathCorePlugin</h2>
<p>
<code>public <strong>XPathCorePlugin</strong>()</code>
</p>
<p>The constructor</p>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Methods Detail
</h2>
</td>
</tr>
</table>
<h2>getDefault</h2>
<p>
<code>public org.eclipse.wst.xml.xpath.core.XPathCorePlugin <strong>getDefault</strong>()</code>
</p>
<p>Returns the shared instance</p>
<h3>Returns</h3>
<p>
<code>org.eclipse.wst.xml.xpath.core.XPathCorePlugin</code> - the shared instance</p>
<hr>
<h2>start</h2>
<p>
<code>public void <strong>start</strong>(BundleContext context)</code>
</p>
<p></p>
<h3>Parameters</h3>
<p>
<code>context</code>
</p>
<h3>Throws:</h3>
<p>
<code>java.lang.Exception</code>
</p>
<hr>
<h2>stop</h2>
<p>
<code>public void <strong>stop</strong>(BundleContext context)</code>
</p>
<p></p>
<h3>Parameters</h3>
<p>
<code>context</code>
</p>
<h3>Throws:</h3>
<p>
<code>java.lang.Exception</code>
</p>
<hr>
<p>
<font size="+1"><strong>Package org.eclipse.wst.xml.xpath.core.internal.parser</strong></font>
</p>
<hr>
<h2>
<font size="-1"><strong>org.eclipse.wst.xml.xpath.core.internal.parser</strong></font>
<br>
Class XPathParser</h2>
<br>
<hr>
<pre>public class <strong>XPathParser</strong>
extends java.lang.Object</pre>
<hr>
<table width="100%" border="1">
<tr cols="2" bgcolor="#CCCCFF">
<td colspan="2" width="100%">
<h2>Field Summary</h2>
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>protected Token</code></td><td width="80%" align="left"><code>currentToken</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>protected org.apache.commons.jxpath.ri.parser.XPathParser</code></td><td width="80%" align="left"><code>parser</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>protected Token</code></td><td width="80%" align="left"><code>previousToken</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr bgcolor="#CCCCFF">
<td width="100%">
<h2>Constructor Summary</h2>
</td>
</tr>
<tr>
<td><code><strong>XPathParser</strong>(java.lang.String xpath)</code></td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr cols="2" bgcolor="#CCCCFF">
<td colspan="2" width="100%">
<h2>Method Summary</h2>
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public Token</code></td><td width="" align="left"><code>getCurrentToken()</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public Token</code></td><td width="" align="left"><code>getPreviousToken()</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>public int</code></td><td width="" align="left"><code>getTokenStartOffset(int offsetLine
,
int offsetColumn)</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
Given a line number and a column number, return the starting
offset of the last known token.</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>protected boolean</code></td><td width="" align="left"><code>locatedColumn(Token token
,
int offsetColumn)</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
Checks to see if the token is in the range of the column offset</td>
</tr>
<tr valign="top">
<td width="20%" align="right"><code>protected boolean</code></td><td width="" align="left"><code>locatedLine(Token token
,
int offsetLine)</code>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;
Checks to see if the token is in the range of the line offset</td>
</tr>
</table>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Field Detail
</h2>
</td>
</tr>
</table>
<h2>currentToken</h2>
<p>
<code>protected Token <strong>currentToken</strong></code>
</p>
<hr>
<h2>parser</h2>
<p>
<code>protected org.apache.commons.jxpath.ri.parser.XPathParser <strong>parser</strong></code>
</p>
<hr>
<h2>previousToken</h2>
<p>
<code>protected Token <strong>previousToken</strong></code>
</p>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Constructor Detail
</h2>
</td>
</tr>
</table>
<h2>XPathParser</h2>
<p>
<code>public <strong>XPathParser</strong>(java.lang.String xpath)</code>
</p>
<p></p>
<hr>
<table cols="2" width="100%" border="1">
<tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left">
<td>
<h2>
Methods Detail
</h2>
</td>
</tr>
</table>
<h2>getCurrentToken</h2>
<p>
<code>public Token <strong>getCurrentToken</strong>()</code>
</p>
<p></p>
<h3>Returns</h3>
<p>
<code>Token</code>
</p>
<hr>
<h2>getPreviousToken</h2>
<p>
<code>public Token <strong>getPreviousToken</strong>()</code>
</p>
<p></p>
<h3>Returns</h3>
<p>
<code>Token</code>
</p>
<hr>
<h2>getTokenStartOffset</h2>
<p>
<code>public int <strong>getTokenStartOffset</strong>(int offsetLine
,
int offsetColumn)</code>
</p>
<p>Given a line number and a column number, return the starting
offset of the last known token.</p>
<h3>Parameters</h3>
<p>
<code>offsetLine</code>
</p>
<p>
<code>offsetColumn</code>
</p>
<h3>Returns</h3>
<p>
<code>int</code>
</p>
<hr>
<h2>locatedColumn</h2>
<p>
<code>protected boolean <strong>locatedColumn</strong>(Token token
,
int offsetColumn)</code>
</p>
<p>Checks to see if the token is in the range of the column offset</p>
<h3>Parameters</h3>
<p>
<code>token</code>
</p>
<p>
<code>offsetColumn</code>
</p>
<h3>Returns</h3>
<p>
<code>boolean</code> - true if found, false otherwise</p>
<hr>
<h2>locatedLine</h2>
<p>
<code>protected boolean <strong>locatedLine</strong>(Token token
,
int offsetLine)</code>
</p>
<p>Checks to see if the token is in the range of the line offset</p>
<h3>Parameters</h3>
<p>
<code>token</code> - An XPath Token.</p>
<p>
<code>offsetLine</code> - Line number offset of a region.</p>
<h3>Returns</h3>
<p>
<code>boolean</code> - true if found, false otherwise.</p>
<hr>
</body>
</html>