/** * INTERNAL * If called this AttributeNode represents an unqualified field access. * The method returns a DotNode representing a qualified field access with * the base variable as left child node and the attribute as right child * node. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); }
/** * INTERNAL * If called this AttributeNode represents an unqualified field access. * The method returns a DotNode representing a qualified field access with * the base variable as left child node and the attribute as right child * node. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); }
/** * INTERNAL * If called this AttributeNode represents an unqualified field access. * The method returns a DotNode representing a qualified field access with * the base variable as left child node and the attribute as right child * node. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); }
/** * INTERNAL * This node represent an unqualified field access in the case the method * is called and the variableName is not defined as identification variable. * The method returns a DotNode representing a qualified field access with * the base variable as left child node. The right child node is an * AttributeNode using the variableName as field name. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return context.isVariable(variableName) ? this : (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), variableName); }
/** * INTERNAL * This node represent an unqualified field access in the case the method * is called and the variableName is not defined as identification variable. * The method returns a DotNode representing a qualified field access with * the base variable as left child node. The right child node is an * AttributeNode using the variableName as field name. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return context.isVariable(variableName) ? this : (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), variableName); }
/** * INTERNAL * This node represent an unqualified field access in the case the method * is called and the variableName is not defined as identification variable. * The method returns a DotNode representing a qualified field access with * the base variable as left child node. The right child node is an * AttributeNode using the variableName as field name. */ public Node qualifyAttributeAccess(ParseTreeContext context) { return context.isVariable(variableName) ? this : (Node)context.getNodeFactory().newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), variableName); }
/** * INTERNAL * Check for an unqualified field access. If abstractSchemaName does not * define a valid abstract schema name treat it as unqualified field * access. Then method qualifies the field access and use it as the path * expression of a new join variable declaration node returned by the * method. */ public Node qualifyAttributeAccess(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); String name = abstractSchemaName; if (typeHelper.resolveSchema(name) == null) { // not a known abstract schema name => make it a join node with a // qualified attribute access as path expression context.unregisterVariable(getCanonicalVariableName()); NodeFactory factory = context.getNodeFactory(); Node path = (Node)factory.newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); return (Node)factory.newVariableDecl( getLine(), getColumn(), path, getVariableName()); } return this; }
/** * INTERNAL * Check for an unqualified field access. If abstractSchemaName does not * define a valid abstract schema name treat it as unqualified field * access. Then method qualifies the field access and use it as the path * expression of a new join variable declaration node returned by the * method. */ public Node qualifyAttributeAccess(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); String name = abstractSchemaName; if (typeHelper.resolveSchema(name) == null) { // not a known abstract schema name => make it a join node with a // qualified attribute access as path expression context.unregisterVariable(getCanonicalVariableName()); NodeFactory factory = context.getNodeFactory(); Node path = (Node)factory.newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); return (Node)factory.newVariableDecl( getLine(), getColumn(), path, getVariableName()); } return this; }
/** * INTERNAL * Check for an unqualified field access. If abstractSchemaName does not * define a valid abstract schema name treat it as unqualified field * access. Then method qualifies the field access and use it as the path * expression of a new join variable declaration node returned by the * method. */ public Node qualifyAttributeAccess(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); String name = abstractSchemaName; if (typeHelper.resolveSchema(name) == null) { // not a known abstract schema name => make it a join node with a // qualified attribute access as path expression context.unregisterVariable(getCanonicalVariableName()); NodeFactory factory = context.getNodeFactory(); Node path = (Node)factory.newQualifiedAttribute( getLine(), getColumn(), context.getBaseVariable(), name); return (Node)factory.newVariableDecl( getLine(), getColumn(), path, getVariableName()); } return this; }