1 21 22 package org.apache.derby.impl.sql.compile; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.services.compiler.MethodBuilder; 26 import org.apache.derby.iapi.services.io.StoredFormatIds; 27 import org.apache.derby.iapi.services.sanity.SanityManager; 28 import org.apache.derby.iapi.types.TypeId; 29 30 import org.apache.derby.impl.sql.compile.ExpressionClassBuilder; 31 32 import org.apache.derby.iapi.util.ReuseFactory; 33 34 public final class XMLConstantNode extends ConstantNode 35 { 36 43 public void init( 44 Object arg1) 45 throws StandardException 46 { 47 super.init( 48 arg1, 49 Boolean.TRUE, 50 ReuseFactory.getInteger(0)); 51 } 52 53 60 public String getString() throws StandardException 61 { 62 return value.getString(); 63 } 64 65 75 Object getConstantValueAsObject() throws StandardException 76 { 77 return value.getObject(); 78 } 79 80 91 void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb) 92 throws StandardException 93 { 94 mb.push(getString()); 97 } 98 } 99 | Popular Tags |