1 21 22 package org.apache.derby.impl.sql.compile; 23 24 import org.apache.derby.iapi.services.compiler.MethodBuilder; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 import org.apache.derby.iapi.error.StandardException; 29 30 import org.apache.derby.iapi.types.DataValueDescriptor; 31 import org.apache.derby.iapi.types.DataTypeDescriptor; 32 33 import org.apache.derby.impl.sql.compile.ExpressionClassBuilder; 34 35 import java.util.Vector ; 36 41 42 public final class UntypedNullConstantNode extends ConstantNode 43 { 44 48 49 public UntypedNullConstantNode() 50 { 51 super(); 52 } 53 54 60 61 69 76 void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb) 77 { 78 if (SanityManager.DEBUG) 79 { 80 SanityManager.THROWASSERT("generateConstant() not expected to be called for UntypedNullConstantNode because we have implemented our own generateExpression()."); 81 } 82 } 83 84 90 public DataValueDescriptor convertDefaultNode(DataTypeDescriptor typeDescriptor) 91 { 92 95 return typeDescriptor.getNull(); 96 } 97 98 103 public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) 104 { 105 return this; 106 } 107 } 108 | Popular Tags |