Class ElementSelector
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.parser.selector.AbstractSelector
-
- org.htmlunit.cssparser.parser.selector.ElementSelector
-
- All Implemented Interfaces:
Serializable,Locatable,Selector,SimpleSelector
public class ElementSelector extends AbstractSelector implements SimpleSelector
ElementSelector class.
- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.htmlunit.cssparser.parser.selector.Selector
Selector.SelectorType
-
-
Constructor Summary
Constructors Constructor Description ElementSelector(String localName, Locator locator)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCondition(Condition condition)Add a condition.List<Condition>getConditions()getConditions.StringgetElementName()getElementName.StringgetLocalName()getLocalName.StringgetLocalNameLowerCase()getLocalNameLowerCase.Selector.SelectorTypegetSelectorType()getSelectorType.SimpleSelectorgetSimpleSelector()getSimpleSelector.StringtoString()-
Methods inherited from class org.htmlunit.cssparser.parser.selector.AbstractSelector
getSelectorSpecificity
-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.htmlunit.cssparser.parser.Locatable
getLocator, setLocator
-
Methods inherited from interface org.htmlunit.cssparser.parser.selector.Selector
getSelectorSpecificity
-
-
-
-
Method Detail
-
getSelectorType
public Selector.SelectorType getSelectorType()
getSelectorType.
- Specified by:
getSelectorTypein interfaceSelector- Returns:
- the associated selector type
-
getSimpleSelector
public SimpleSelector getSimpleSelector()
getSimpleSelector.
- Specified by:
getSimpleSelectorin interfaceSelector- Returns:
- the simple selector part
-
getLocalName
public String getLocalName()
getLocalName.
- Returns:
- the local name
-
getLocalNameLowerCase
public String getLocalNameLowerCase()
getLocalNameLowerCase.
- Returns:
- the local name in lowercase
-
getElementName
public String getElementName()
getElementName.
- Returns:
- the element name
-
addCondition
public void addCondition(Condition condition)
Add a condition.- Parameters:
condition- the condition to be added
-
-