@Immutable public class NodeDepth extends Object implements DynamicOperand, NodeDepth
Comparison constraint.| Constructor and Description |
|---|
NodeDepth(SelectorName selectorName)
Create a dynamic operand that evaluates to the depth of the node identified by the selector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
|
boolean |
equals(Object obj) |
String |
getSelectorName()
Get the selector symbol upon which this operand applies.
|
int |
hashCode() |
SelectorName |
selectorName()
Get the selector symbol upon which this operand applies.
|
Set<SelectorName> |
selectorNames()
Get the selector symbols to which this operand applies.
|
String |
toString() |
public NodeDepth(SelectorName selectorName)
selectorName - the name of the selectorIllegalArgumentException - if the selector name or property name are nullpublic SelectorName selectorName()
public Set<SelectorName> selectorNames()
DynamicOperandpublic String getSelectorName()
NodeDepthgetSelectorName in interface NodeDepthCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.