@Immutable public class ChildCount extends Object implements DynamicOperand, ChildCount
Comparison
constraint.Constructor and Description |
---|
ChildCount(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 ChildCount(SelectorName selectorName)
selectorName
- the name of the selectorIllegalArgumentException
- if the selector name or property name are nullpublic SelectorName selectorName()
public Set<SelectorName> selectorNames()
DynamicOperand
public String getSelectorName()
ChildCount
getSelectorName
in interface ChildCount
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.