@Immutable public final class Cast extends Object implements DynamicOperand, Cast
Cast
operand.Constructor and Description |
---|
Cast(DynamicOperand operand,
String desiredTypeName)
Creates a new operand instance, wrapping another operand and the desired type.
|
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 |
getDesiredTypeName()
Get the name of the desired type to cast-to.
|
DynamicOperand |
getOperand()
Get the inner operand.
|
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 Cast(DynamicOperand operand, String desiredTypeName)
operand
- a DynamicOperand
instance, never null
desiredTypeName
- a String
, the name of the desired type to cast to; never nullpublic SelectorName selectorName()
public String getDesiredTypeName()
Cast
getDesiredTypeName
in interface Cast
String
, never null
public Set<SelectorName> selectorNames()
DynamicOperand
public DynamicOperand getOperand()
getOperand
in interface Cast
DynamicOperand
instance, never null
public void accept(Visitor visitor)
Visitable
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.