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
ElementSelector class.
- Author:
- Ronald Brill
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.htmlunit.cssparser.parser.selector.Selector
Selector.SelectorType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(Condition condition) Add a condition.getConditions.getElementName.getLocalName.getLocalNameLowerCase.getSelectorType.getSimpleSelector.toString()
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
-
Constructor Details
-
ElementSelector
Ctor.- Parameters:
localName
- the local namelocator
- the locator
-
-
Method Details
-
getSelectorType
getSelectorType.
- Specified by:
getSelectorType
in interfaceSelector
- Returns:
- the associated selector type
-
getSimpleSelector
getSimpleSelector.
- Specified by:
getSimpleSelector
in interfaceSelector
- Returns:
- the simple selector part
-
getLocalName
getLocalName.
- Returns:
- the local name
-
getLocalNameLowerCase
getLocalNameLowerCase.
- Returns:
- the local name in lowercase
-
getElementName
getElementName.
- Returns:
- the element name
-
getConditions
getConditions.
- Returns:
- the conditions
-
addCondition
Add a condition.- Parameters:
condition
- the condition to be added
-
toString
-