public final class StaticClassFieldReferenceNode extends JavaValueNode
| Modifier and Type | Field and Description |
|---|---|
private boolean |
classNameDelimitedIdentifier |
private java.lang.reflect.Member |
field
The field we are going to access.
|
private java.lang.String |
fieldName |
private java.lang.String |
javaClassName |
forCallStatement, jsqlTypeAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
StaticClassFieldReferenceNode() |
| Modifier and Type | Method and Description |
|---|---|
JavaValueNode |
bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.List aggregateVector)
Bind this expression.
|
boolean |
categorize(JBitSet referencedTabs,
boolean simplePredsOnly)
Categorize this predicate.
|
void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
General logic shared by Core compilation and by the Replication Filter
compiler.
|
protected int |
getOrderableVariantType()
Return the variant type for the underlying expression.
|
void |
init(java.lang.Object javaClassName,
java.lang.Object fieldName,
java.lang.Object classNameDelimitedIdentifier)
Initializer for a StaticClassFieldReferenceNode
|
void |
preprocess(int numTables,
FromList outerFromList,
SubqueryList outerSubqueryList,
PredicateList outerPredicateList)
Preprocess an expression tree.
|
JavaValueNode |
remapColumnReferencesToExpressions()
Remap all ColumnReferences in this tree to be clones of the
underlying expression.
|
castToPrimitive, checkReliability, generate, generateReceiver, generateReceiver, getCollationType, getConstantValueAsObject, getDataType, getJavaTypeName, getJSQLType, getPrimitiveTypeName, getReceiverExpression, isPrimitiveType, mapToTypeID, markForCallStatement, markReturnValueDiscarded, mustCastToPrimitive, returnValueDiscarded, returnValueToSQLDomain, setCollationType, setJavaTypeName, valueReturnedToSQLDomainaccept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, toString, treePrint, treePrint, verifyClassExistprivate java.lang.String fieldName
private java.lang.String javaClassName
private boolean classNameDelimitedIdentifier
private java.lang.reflect.Member field
public void init(java.lang.Object javaClassName,
java.lang.Object fieldName,
java.lang.Object classNameDelimitedIdentifier)
init in interface Nodeinit in class QueryTreeNodejavaClassName - The class namefieldName - The field namepublic JavaValueNode bindExpression(FromList fromList, SubqueryList subqueryList, java.util.List aggregateVector) throws StandardException
bindExpression in class JavaValueNodefromList - The FROM list for the query this
expression is in, for binding columns.subqueryList - The subquery list being built as we find SubqueryNodesaggregateVector - The aggregate vector being built as we find AggregateNodesStandardException - Thrown on errorValueNode.bindExpression(org.apache.derby.impl.sql.compile.FromList, org.apache.derby.impl.sql.compile.SubqueryList, java.util.List)public void preprocess(int numTables,
FromList outerFromList,
SubqueryList outerSubqueryList,
PredicateList outerPredicateList)
throws StandardException
preprocess in class JavaValueNodenumTables - Number of tables in the DML StatementouterFromList - FromList from outer query blockouterSubqueryList - SubqueryList from outer query blockouterPredicateList - PredicateList from outer query blockStandardException - Thrown on errorValueNode.preprocess(int, org.apache.derby.impl.sql.compile.FromList, org.apache.derby.impl.sql.compile.SubqueryList, org.apache.derby.impl.sql.compile.PredicateList)public boolean categorize(JBitSet referencedTabs, boolean simplePredsOnly)
categorize in class JavaValueNodereferencedTabs - JBitSet with bit map of referenced FromTablessimplePredsOnly - Whether or not to consider method
calls, field references and conditional nodes
when building bit mapValueNode.categorize(org.apache.derby.iapi.util.JBitSet, boolean)public JavaValueNode remapColumnReferencesToExpressions() throws StandardException
remapColumnReferencesToExpressions in class JavaValueNodeStandardException - Thrown on errorValueNode.remapColumnReferencesToExpressions()protected int getOrderableVariantType()
getOrderableVariantType in class JavaValueNodepublic void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
JavaValueNodegenerateExpression in class JavaValueNodeacb - The ExpressionClassBuilder for the class being builtmb - the method the expression will go intoStandardException - Thrown on errorQueryTreeNode.generate(org.apache.derby.impl.sql.compile.ActivationClassBuilder, org.apache.derby.iapi.services.compiler.MethodBuilder)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.