/** * Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited * by an expression in a source tree. * * @param pathMap the PathMap to which the expression should be added * @param pathMapNodeSet * @return the pathMapNode representing the focus established by this expression, in the case where this * expression is the first operand of a path expression or filter expression */ public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet target = start.addToPathMap(pathMap, pathMapNodeSet); return step.addToPathMap(pathMap, target); }
/** * Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited * by an expression in a source tree. * * @param pathMap the PathMap to which the expression should be added * @param pathMapNodeSet * @return the pathMapNode representing the focus established by this expression, in the case where this * expression is the first operand of a path expression or filter expression */ public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet target = start.addToPathMap(pathMap, pathMapNodeSet); return step.addToPathMap(pathMap, target); }
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet result = operand.addToPathMap(pathMap, pathMapNodeSet); if (result != null) { result.setAtomized(); } return null; }
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet result = operand.addToPathMap(pathMap, pathMapNodeSet); if (result != null) { result.setAtomized(); } return null; }
/** * Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited * by an expression in a source tree. * * @param pathMap the PathMap to which the expression should be added * @param pathMapNodeSet * @return the pathMapNode representing the focus established by this expression, in the case where this * expression is the first operand of a path expression or filter expression */ public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet target = getStart().addToPathMap(pathMap, pathMapNodeSet); return getStep().addToPathMap(pathMap, target); }
/** * Create the PathMap for an expression * * @param exp the expression whose PathMap is required */ public PathMap(/*@NotNull*/ Expression exp) { PathMapNodeSet finalNodes = exp.addToPathMap(this, null); if (finalNodes != null) { for (PathMapNode node : finalNodes) { node.setReturnable(true); } } }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { getPredicate().addToPathMap(pathMap, pathMapNodeSet); }
/** * Create the PathMap for an expression * * @param exp the expression whose PathMap is required */ public PathMap(/*@NotNull*/ Expression exp) { PathMapNodeSet finalNodes = exp.addToPathMap(this, null); if (finalNodes != null) { for (PathMapNode node : finalNodes) { node.setReturnable(true); } } }
/** * Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited * by an expression in a source tree. * * @param pathMap the PathMap to which the expression should be added * @param pathMapNodeSet * @return the pathMapNode representing the focus established by this expression, in the case where this * expression is the first operand of a path expression or filter expression */ public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet target = getStart().addToPathMap(pathMap, pathMapNodeSet); return getStep().addToPathMap(pathMap, target); }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { getPredicate().addToPathMap(pathMap, pathMapNodeSet); }
/** * Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited * by an expression in a source tree. * * @param pathMap the PathMap to which the expression should be added * @param pathMapNodeSet the PathMapNodeSet to which the paths embodied in this expression should be added * @return the pathMapNode representing the focus established by this expression, in the case where this * expression is the first operand of a path expression or filter expression */ public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet target = getStart().addToPathMap(pathMap, pathMapNodeSet); return getStep().addToPathMap(pathMap, target); }
/** * Create the PathMap for an expression * @param exp the expression whose PathMap is required */ public PathMap(Expression exp) { PathMapNodeSet finalNodes = exp.addToPathMap(this, null); if (finalNodes != null) { for (Iterator iter = finalNodes.iterator(); iter.hasNext(); ) { PathMapNode node = (PathMapNode)iter.next(); node.setReturnable(true); } } }
public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { SortKeyDefinitionList sortKeys = getSortKeyDefinitions(); for (SortKeyDefinition skd : sortKeys) { Expression sortKey = skd.getSortKey(); sortKey.addToPathMap(pathMap, pathMapNodeSet); } }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet varPath = getSequence().addToPathMap(pathMap, pathMapNodeSet); pathMap.registerPathForVariable(rangeVariable, varPath); }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet varPath = getSequence().addToPathMap(pathMap, pathMapNodeSet); pathMap.registerPathForVariable(rangeVariable, varPath); }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet varPath = getSequence().addToPathMap(pathMap, pathMapNodeSet); pathMap.registerPathForVariable(rangeVariable, varPath); }
public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { SortKeyDefinitionList sortKeys = getSortKeyDefinitions(); for (SortKeyDefinition skd : sortKeys) { Expression sortKey = skd.getSortKey(); sortKey.addToPathMap(pathMap, pathMapNodeSet); } }
@Override public void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet varPath = getSequence().addToPathMap(pathMap, pathMapNodeSet); pathMap.registerPathForVariable(rangeVariable, varPath); }
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet result = getBaseExpression().addToPathMap(pathMap, pathMapNodeSet); if (result != null) { TypeHierarchy th = getConfiguration().getTypeHierarchy(); ItemType operandItemType = getBaseExpression().getItemType(); if (th.relationship(NodeKindTest.ELEMENT, operandItemType) != TypeHierarchy.DISJOINT || th.relationship(NodeKindTest.DOCUMENT, operandItemType) != TypeHierarchy.DISJOINT) { result.setAtomized(); } } return null; }
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet) { PathMap.PathMapNodeSet result = getBaseExpression().addToPathMap(pathMap, pathMapNodeSet); if (result != null) { TypeHierarchy th = getConfiguration().getTypeHierarchy(); ItemType operandItemType = getBaseExpression().getItemType(); if (th.relationship(NodeKindTest.ELEMENT, operandItemType) != TypeHierarchy.DISJOINT || th.relationship(NodeKindTest.DOCUMENT, operandItemType) != TypeHierarchy.DISJOINT) { result.setAtomized(); } } return null; }