/** * 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; }
varDecls.add(factory.newVariableDecl(i.getLine(), i.getCharPositionInLine(), n, i.getText()));
/** * 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; }
varDecls.add(factory.newVariableDecl(i.getLine(), i.getCharPositionInLine(), n, i.getText()));
varDecls.add(factory.newVariableDecl(i.getLine(), i.getCharPositionInLine(), n, i.getText()));