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 ChildSelectorImpl implements DescendantSelector { 25 26 Selector parent; 27 SimpleSelector child; 28 29 32 public short getSelectorType() { 33 return Selector.SAC_CHILD_SELECTOR; 34 } 35 36 39 public ChildSelectorImpl(Selector parent, SimpleSelector child) { 40 this.parent = parent; 41 this.child = child; 42 } 43 44 45 48 public Selector getAncestorSelector() { 49 return parent; 50 } 51 52 55 public SimpleSelector getSimpleSelector() { 56 return child; 57 } 58 } 59 | Popular Tags |