@Immutable public class SameNodeJoinCondition extends Object implements JoinCondition, SameNodeJoinCondition
Constructor and Description |
---|
SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name)
Create a join condition that determines whether the node identified by the first selector is the same as the node
identified by the second selector.
|
SameNodeJoinCondition(SelectorName selector1Name,
SelectorName selector2Name,
String selector2Path)
Create a join condition that determines whether the node identified by the first selector is the same as the node at the
given path relative to the node identified by the second 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 |
getSelector1Name() |
String |
getSelector2Name() |
String |
getSelector2Path() |
int |
hashCode() |
SelectorName |
selector1Name()
Get the selector name for the first side of the join condition.
|
SelectorName |
selector2Name()
Get the selector name for the second side of the join condition.
|
String |
toString() |
public SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name, String selector2Path)
selector1Name
- the name of the first selectorselector2Name
- the name of the second selectorselector2Path
- the relative path from the second selector locating the node being compared with the first selectorIllegalArgumentException
- if the path or either selector name is nullpublic SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name)
selector1Name
- the name of the first selectorselector2Name
- the name of the second selectorIllegalArgumentException
- if either selector name is nullpublic final SelectorName selector1Name()
public final SelectorName selector2Name()
public String getSelector1Name()
getSelector1Name
in interface SameNodeJoinCondition
public String getSelector2Name()
getSelector2Name
in interface SameNodeJoinCondition
public final String getSelector2Path()
getSelector2Path
in interface SameNodeJoinCondition
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.