Class JCast

    • 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 cast
        object - JExpression for the object upon which the cast is applied
    • Method Detail

      • generate

        public void generate​(JFormatter f)