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.
|
protected String |
pseudoClass
The pseudo class.
|
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 pseudoClass
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 name
public static CssPseudoClassSelectorItem create(String fullSelectorString)
public static CssPseudoClassSelectorItem create(String pseudoClass, String arguments)
public int getSpecificity()
ICssSelectorItem
getSpecificity
in interface ICssSelectorItem
public boolean matches(INode node)
ICssSelectorItem
matches
in interface ICssSelectorItem
node
- the element
public String getPseudoClass()
Copyright © 1998–2019 iText Group NV. All rights reserved.