@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 nulldesiredTypeName - a String, the name of the desired type to cast to; never nullpublic SelectorName selectorName()
public String getDesiredTypeName()
CastgetDesiredTypeName in interface CastString, never nullpublic Set<SelectorName> selectorNames()
DynamicOperandpublic DynamicOperand getOperand()
getOperand in interface CastDynamicOperand instance, never nullpublic void accept(Visitor visitor)
VisitableCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.