001    package railo.transformer.bytecode.expression.var;
002    
003    import org.objectweb.asm.Type;
004    
005    import railo.transformer.bytecode.BytecodeContext;
006    import railo.transformer.bytecode.BytecodeException;
007    import railo.transformer.bytecode.expression.ExpressionBase;
008    import railo.transformer.bytecode.util.ASMConstants;
009    import railo.transformer.bytecode.util.Types;
010    
011    public class NullExpression extends ExpressionBase {
012    
013            public static final NullExpression NULL_EXPRESSION=new NullExpression();
014            
015            private NullExpression() {
016                    super(null,null);
017            }
018    
019            public Type _writeOut(BytecodeContext bc, int mode)
020                            throws BytecodeException {
021                    ASMConstants.NULL(bc.getAdapter());
022                    return Types.OBJECT;
023            }
024    
025    }