Class JCast

All Implemented Interfaces:
JExpression, JGenerable

final class JCast extends JExpressionImpl
A cast operation.
  • Field Details

    • type

      private final JType type
      JType to which the expression is to be cast.
    • object

      private final JExpression object
      JExpression to be cast.
  • Constructor Details

    • JCast

      JCast(JType type, JExpression object)
      JCast constructor
      Parameters:
      type - JType to which the expression is cast
      object - JExpression for the object upon which the cast is applied
  • Method Details