final class JCast extends JExpressionImpl
Modifier and Type | Field and Description |
---|---|
private JExpression |
object
JExpression to be cast.
|
private JType |
type
JType to which the expression is to be cast.
|
Constructor and Description |
---|
JCast(JType type,
JExpression object)
JCast constructor
|
Modifier and Type | Method and Description |
---|---|
void |
generate(JFormatter f) |
private final JType type
private final JExpression object
JCast(JType type, JExpression object)
type
- JType to which the expression is castobject
- JExpression for the object upon which
the cast is appliedpublic void generate(JFormatter f)