public class CssPseudoClassSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem implementation for pseudo class selectors.| Modifier and Type | Class and Description |
|---|---|
static class |
CssPseudoClassSelectorItem.NotSelectorItem |
| Modifier and Type | Field and Description |
|---|---|
protected String |
arguments
The arguments.
|
| Modifier | Constructor and Description |
|---|---|
|
CssPseudoClassSelectorItem(String pseudoClass)
Deprecated.
not intended for public use
create(String) instead.
This class will be abstract and this constructor will be protected in the next major release. |
protected |
CssPseudoClassSelectorItem(String pseudoClass,
String arguments) |
| Modifier and Type | Method and Description |
|---|---|
static CssPseudoClassSelectorItem |
create(String fullSelectorString) |
static CssPseudoClassSelectorItem |
create(String pseudoClass,
String arguments) |
String |
getPseudoClass() |
int |
getSpecificity()
Gets the specificity.
|
boolean |
matches(INode node)
Checks if the selector matches an element.
|
String |
toString() |
protected String arguments
@Deprecated public CssPseudoClassSelectorItem(String pseudoClass)
create(String) instead.
This class will be abstract and this constructor will be protected in the next major release.CssPseudoClassSelectorItem instance.pseudoClass - the pseudo class namepublic static CssPseudoClassSelectorItem create(String fullSelectorString)
public static CssPseudoClassSelectorItem create(String pseudoClass, String arguments)
public int getSpecificity()
ICssSelectorItemgetSpecificity in interface ICssSelectorItempublic boolean matches(INode node)
ICssSelectorItemmatches in interface ICssSelectorItemnode - the elementpublic String getPseudoClass()
Copyright © 1998–2018 iText Group NV. All rights reserved.