Top Fields Constructors Methods
org.apache.derby.impl.sql.compile

pack-priv Class BitConstantNode

extends ConstantNode
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.compile.VarbitConstantNode
Imports
java.sql.Types, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.classfile.VMOpcode, org.apache.derby.iapi.services.compiler.MethodBuilder, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.types.BitDataValue, .TypeId, org.apache.derby.iapi.util.StringUtil

Field Summary

Inherited from org.apache.derby.impl.sql.compile.ConstantNode:
value

Constructor Summary

AccessConstructor and Description
pack-priv
BitConstantNode(TypeId
The TypeId for the type of the node
t
,
ContextManager
context manager
cm
)

pack-priv
BitConstantNode(String
hexadecimally coded bit string
hexString
,
int
desired length of the bit string
bitLength
,
ContextManager
context manager
cm
)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
generateConstant(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built
acb
,
MethodBuilder
The method the code to place the code
mb
)

Implements abstract org.apache.derby.impl.sql.compile.ConstantNode.generateConstant.

This generates the proper constant.

pack-priv Object

Returns:

An Object representing the bind time value of this expression tree. (null if not a bind time constant.)
getConstantValueAsObject
()

Overrides org.apache.derby.impl.sql.compile.ValueNode.getConstantValueAsObject.

Return an Object representing the bind time value of this expression tree.

Inherited from org.apache.derby.impl.sql.compile.ConstantNode:
bindExpressionconstantExpressiongenerateExpressiongetClonegetOrderableVariantTypegetValueisCloneableisConstantExpressionisEquivalentisNullsetValuetoString

Constructor Detail

BitConstantNodeback to summary
pack-priv BitConstantNode(TypeId t, ContextManager cm) throws StandardException
Parameters
t:TypeId

The TypeId for the type of the node

cm:ContextManager

context manager

BitConstantNodeback to summary
pack-priv BitConstantNode(String hexString, int bitLength, ContextManager cm) throws StandardException
Parameters
hexString:String

hexadecimally coded bit string

bitLength:int

desired length of the bit string

cm:ContextManager

context manager

Method Detail

generateConstantback to summary
pack-priv void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException

Implements abstract org.apache.derby.impl.sql.compile.ConstantNode.generateConstant.

This generates the proper constant. It is implemented by every specific constant node (e.g. IntConstantNode).

Parameters
acb:ExpressionClassBuilder

The ExpressionClassBuilder for the class being built

mb:MethodBuilder

The method the code to place the code

Exceptions
StandardException:
Thrown on error
getConstantValueAsObjectback to summary
pack-priv Object getConstantValueAsObject() throws StandardException

Overrides org.apache.derby.impl.sql.compile.ValueNode.getConstantValueAsObject.

Return an Object representing the bind time value of this expression tree. If the expression tree does not evaluate to a constant at bind time then we return null. This is useful for bind time resolution of VTIs.

Resolve

What do we do for primitives?

Returns:Object

An Object representing the bind time value of this expression tree. (null if not a bind time constant.)

Annotations
@Override
Exceptions
StandardException:
Thrown on error