@Immutable public class NamedSelector extends Selector
Constructor and Description |
---|
NamedSelector(SelectorName name)
Create a selector with a name.
|
NamedSelector(SelectorName name,
SelectorName alias)
Create a selector with the supplied name and alias.
|
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) |
int |
hashCode() |
String |
toString() |
alias, aliasOrName, getNodeTypeName, getSelectorName, hasAlias, name
public NamedSelector(SelectorName name)
name
- the name for this selectorIllegalArgumentException
- if the selector name is nullpublic NamedSelector(SelectorName name, SelectorName alias)
name
- the name for this selectoralias
- the alias for this selector; may be nullIllegalArgumentException
- if the selector name is nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.