public abstract class CssPseudoClassSelectorItem extends Object implements ICssSelectorItem
ICssSelectorItem
implementation for pseudo class selectors.
Modifier and Type | Field and Description |
---|---|
protected String |
arguments
The arguments.
|
Modifier | Constructor and Description |
---|---|
protected |
CssPseudoClassSelectorItem(String pseudoClass)
Creates a new CssPseudoClassSelectorItem instance.
|
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
protected CssPseudoClassSelectorItem(String pseudoClass)
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.