/******************************************************************************* * Copyright (c) 2008, 2015 Innoopract Informationssysteme GmbH 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: * Innoopract Informationssysteme GmbH - initial API and implementation * EclipseSource - ongoing development ******************************************************************************/ package org.eclipse.rap.rwt.internal.theme.css; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SiblingSelector; import org.w3c.css.sac.SimpleSelector; public class NullSiblingSelector implements SiblingSelector, SelectorExt { @Override public Selector getSelector() { return null; } @Override public SimpleSelector getSiblingSelector() { return null; } @Override public short getSelectorType() { return SAC_DIRECT_ADJACENT_SELECTOR; } @Override public short getNodeType() { return ANY_NODE; } @Override public String getElementName() { return null; } @Override public int getSpecificity() { return 0; } @Override public String[] getConstraints() { throw new UnsupportedOperationException(); } @Override public String toString() { return "null selector"; } }