blob: 7ead88bba9eae88a959a478037b6eefdf9a0b65e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*******************************************************************************
* Copyright (c) 2010, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.bidi.internal.consumable;
import org.eclipse.equinox.bidi.STextEnvironment;
import org.eclipse.equinox.bidi.internal.STextDelims;
/**
* Processor adapted to processing XPath expressions.
*/
public class STextXPath extends STextDelims {
public STextXPath() {
super(" /[]<>=!:@.|()+-*"); //$NON-NLS-1$
}
/**
* @return 2 as the number of special cases handled by this processor.
*/
public int getSpecialsCount(STextEnvironment environment) {
return 2;
}
/**
* @return apostrophe and quotation mark as delimiters.
*/
protected String getDelimiters() {
return "''\"\""; //$NON-NLS-1$
}
}
|