public int getAxis() { return _path.getAxis(); }
public void setAxis(int axis) { _path.setAxis(axis); }
public ParentLocationPath(RelativeLocationPath path, Expression step) { _path = path; _step = step; _path.setParent(this); _step.setParent(this); if (_step instanceof Step) { _axisMismatch = checkAxisMismatch(); } }
public Type typeCheck(SymbolTable stable) throws TypeCheckError { stype = _step.typeCheck(stable); _path.typeCheck(stable); if (_axisMismatch) enableNodeOrdering(); return _type = Type.NodeSet; }
_path.translate(classGen, methodGen); // iterator on stack.... LocalVariableGen pathTemp = methodGen.addLocalVariable("parent_location_path_tmp1",
/** * Set the parser for this element and all child predicates */ public void setParser(Parser parser) { super.setParser(parser); if (_predicates != null) { final int n = _predicates.size(); for (int i = 0; i < n; i++) { final Predicate exp = (Predicate)_predicates.elementAt(i); exp.setParser(parser); exp.setParent(this); } } }
public Type typeCheck(SymbolTable stable) throws TypeCheckError { stype = _step.typeCheck(stable); _path.typeCheck(stable); if (_axisMismatch) enableNodeOrdering(); return _type = Type.NodeSet; }
_path.translate(classGen, methodGen); // iterator on stack.... LocalVariableGen pathTemp = methodGen.addLocalVariable("parent_location_path_tmp1",
int left = _path.getAxis(); int right = ((Step)_step).getAxis();
public void setAxis(int axis) { _path.setAxis(axis); }
public ParentLocationPath(RelativeLocationPath path, Expression step) { _path = path; _step = step; _path.setParent(this); _step.setParent(this); if (_step instanceof Step) { _axisMismatch = checkAxisMismatch(); } }
public int getAxis() { return _path.getAxis(); }
public void setAxis(int axis) { _path.setAxis(axis); }
/** * Set the parser for this element and all child predicates */ public void setParser(Parser parser) { super.setParser(parser); if (_predicates != null) { final int n = _predicates.size(); for (int i = 0; i < n; i++) { final Predicate exp = (Predicate)_predicates.elementAt(i); exp.setParser(parser); exp.setParent(this); } } }
public int getAxis() { return _path.getAxis(); }
public void setAxis(int axis) { _path.setAxis(axis); }
public int getAxis() { return _path.getAxis(); }
int left = _path.getAxis(); int right = ((Step)_step).getAxis();