1 14 package org.w3c.flute.parser.selectors; 15 16 import org.w3c.css.sac.SiblingSelector; 17 import org.w3c.css.sac.Selector; 18 import org.w3c.css.sac.SimpleSelector; 19 20 24 public class DirectAdjacentSelectorImpl implements SiblingSelector { 25 26 Selector child; 27 SimpleSelector directAdjacent; 28 29 32 public short getSelectorType() { 33 return Selector.SAC_DIRECT_ADJACENT_SELECTOR; 34 } 35 36 39 public DirectAdjacentSelectorImpl(Selector child, 40 SimpleSelector directAdjacent) { 41 this.child = child; 42 this.directAdjacent = directAdjacent; 43 } 44 45 public short getNodeType() { 46 return 1; 47 } 48 49 52 public Selector getSelector() { 53 return child; 54 } 55 56 59 public SimpleSelector getSiblingSelector() { 60 return directAdjacent; 61 } 62 } 63 | Popular Tags |