/******************************************************************************* * 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.advanced.IStructuredTextExpert; import org.eclipse.equinox.bidi.internal.StructuredTextDelims; /** * Handler adapted to processing XPath expressions. */ public class StructuredTextXPath extends StructuredTextDelims { public StructuredTextXPath() { super(" /[]<>=!:@.|()+-*"); //$NON-NLS-1$ } /** * @return 2 as the number of special cases handled by this handler. */ public int getSpecialsCount(IStructuredTextExpert expert) { return 2; } /** * @return apostrophe and quotation mark as delimiters. */ protected String getDelimiters() { return "''\"\""; //$NON-NLS-1$ } }