Package com.sun.codemodel
Class JCast
java.lang.Object
com.sun.codemodel.JExpressionImpl
com.sun.codemodel.JCast
- All Implemented Interfaces:
JExpression
,JGenerable
A cast operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JExpression
JExpression to be cast.private final JType
JType to which the expression is to be cast. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
JType to which the expression is to be cast. -
object
JExpression to be cast.
-
-
Constructor Details
-
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 Details
-
generate
-