1 14 package org.w3c.flute.parser.selectors; 15 16 import org.w3c.css.sac.DescendantSelector; 17 import org.w3c.css.sac.Selector; 18 import org.w3c.css.sac.SimpleSelector; 19 20 24 public class DescendantSelectorImpl implements DescendantSelector { 25 26 Selector parent; 27 SimpleSelector simpleSelector; 28 29 32 public short getSelectorType() { 33 return Selector.SAC_DESCENDANT_SELECTOR; 34 } 35 36 39 public DescendantSelectorImpl(Selector parent, SimpleSelector simpleSelector) { 40 this.parent = parent; 41 this.simpleSelector = simpleSelector; 42 } 43 44 45 48 public Selector getAncestorSelector() { 49 return parent; 50 } 51 52 55 public SimpleSelector getSimpleSelector() { 56 return simpleSelector; 57 } 58 } 59 | Popular Tags |