def createStepPattern(self, axis, test, predicates): axis = axis.principalType if predicates: predicates = ParsedPredicateList(predicates) return ParsedStepPattern.PredicateStepPattern(test, axis, predicates) else: return ParsedStepPattern.StepPattern(test, axis)
def createAbbreviatedStep(self,parent): if parent: type = 'parent' else: type = 'self' return ParsedStep(ParsedAxisSpecifier(type), ParsedNodeTest.ParsedNodeTest('node',""), ParsedPredicateList([]))
def createAbbreviatedStep(self, parent): if parent: type = "parent" else: type = "self" return ParsedStep( ParsedAxisSpecifier(type), ParsedNodeTest.ParsedNodeTest("node", ""), ParsedPredicateList([]), )
def createFilterExpr(self, filter, predicates): return ParsedExpr.ParsedFilterExpr(filter, ParsedPredicateList(predicates))
def createStep(self, axis, test, predicates): return ParsedStep(axis, test, ParsedPredicateList(predicates))