public interface ConvertNode extends ArithmeticOperation, NodeInterface
| Modifier and Type | Method and Description |
|---|---|
ValueNode |
asNode() |
Constant |
convert(Constant c,
ConstantReflectionProvider constantReflection) |
ValueNode |
getValue() |
boolean |
isLossless()
Check whether a conversion is lossless.
|
default boolean |
preservesOrder(Condition op)
Check whether a conversion preserves comparison order.
|
default boolean |
preservesOrder(Condition op,
Constant value,
ConstantReflectionProvider constantReflection)
Check whether a conversion preserves comparison order against a particular constant value.
|
Constant |
reverse(Constant c,
ConstantReflectionProvider constantReflection) |
Constant convert(Constant c, ConstantReflectionProvider constantReflection)
Constant reverse(Constant c, ConstantReflectionProvider constantReflection)
boolean isLossless()
default boolean preservesOrder(Condition op)
op - a comparison operatordefault boolean preservesOrder(Condition op, Constant value, ConstantReflectionProvider constantReflection)
op - a comparison operatorvalue - constantReflection - ValueNode asNode()
asNode in interface NodeInterface