Package com.sun.codemodel
Class JCast
- java.lang.Object
-
- com.sun.codemodel.JExpressionImpl
-
- com.sun.codemodel.JCast
-
- All Implemented Interfaces:
JExpression
,JGenerable
final class JCast extends JExpressionImpl
A cast operation.
-
-
Field Summary
Fields Modifier and Type Field Description private JExpression
object
JExpression to be cast.private JType
type
JType to which the expression is to be cast.
-
Constructor Summary
Constructors Constructor Description JCast(JType type, JExpression object)
JCast constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generate(JFormatter f)
-
-
-
Field Detail
-
type
private final JType type
JType to which the expression is to be cast.
-
object
private final JExpression object
JExpression to be cast.
-
-
Constructor Detail
-
JCast
JCast(JType type, JExpression object)
JCast constructor- Parameters:
type
- JType to which the expression is castobject
- JExpression for the object upon which the cast is applied
-
-
Method Detail
-
generate
public void generate(JFormatter f)
-
-