package relaxngcc.codedom;

import java.io.IOException;

/**
 * @author Administrator
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public class CDCastExpression extends CDExpression {

    private CDType _type;
    private CDExpression _expression;

    public CDCastExpression(CDType type, CDExpression expr) {
        _type = type;
        _expression = expr;
    }

    public void express( CDFormatter f ) throws IOException {
        f.p("((").type(_type).p(")").express(_expression).p(")");
    }

}
