Top Description Fields Constructors Methods
com.sun.codemodel

public final Class JCast

extends JExpressionImpl
Class Inheritance

A cast operation.

Field Summary

Modifier and TypeField and Description
private final JExpression
object

JExpression to be cast.

private final JType
type

JType to which the expression is to be cast.

Constructor Summary

AccessConstructor and Description
pack-priv
JCast(JType
JType to which the expression is cast
type
,
JExpression
JExpression for the object upon which the cast is applied
object
)

JCast constructor

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from com.sun.codemodel.JExpressionImpl:
_instanceofbandborcandcomplementcomponentcordecrdiveqgtgteincrinvokeinvokeltlteminusminusmodmulnenotplusrefrefshlshrshrzxor

Field Detail

objectback to summary
private final JExpression object

JExpression to be cast.

typeback to summary
private final JType type

JType to which the expression is to be cast.

Constructor Detail

JCastback to summary
pack-priv JCast(JType type, JExpression object)

JCast constructor

Parameters
type:JType

JType to which the expression is cast

object:JExpression

JExpression for the object upon which the cast is applied

Method Detail

generateback to summary
public void generate(JFormatter f)

Implements com.sun.codemodel.JGenerable.generate.

Annotations
@Override