/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * From an XPath expression component, get the ElemTemplateElement * owner. * * @param expr Should be static expression with proper parentage. * @return Valid ElemTemplateElement, or throw a runtime exception * if it is not found. */ protected ElemTemplateElement getElemFromExpression(Expression expr) { ExpressionNode parent = expr.exprGetParent(); while(null != parent) { if(parent instanceof ElemTemplateElement) return (ElemTemplateElement)parent; parent = parent.exprGetParent(); } throw new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_NO_TEMPLATE_PARENT, null)); // "Programmer's error! expr has no ElemTemplateElement parent!"); }
/** * From an XPath expression component, get the ElemTemplateElement * owner. * * @param expr Should be static expression with proper parentage. * @return Valid ElemTemplateElement, or throw a runtime exception * if it is not found. */ protected ElemTemplateElement getElemFromExpression(Expression expr) { ExpressionNode parent = expr.exprGetParent(); while(null != parent) { if(parent instanceof ElemTemplateElement) return (ElemTemplateElement)parent; parent = parent.exprGetParent(); } throw new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_ASSERT_NO_TEMPLATE_PARENT, null)); // "Programmer's error! expr has no ElemTemplateElement parent!"); }
expr = expr.exprGetParent();
expr = expr.exprGetParent();
while (parent != null && !(parent instanceof ElemTemplate)) parent = parent.exprGetParent();
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ protected ExpressionNode getExpressionOwner(ExpressionNode ex) { ExpressionNode parent = ex.exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }
/** * Get the first non-Expression parent of this node. * @return null or first ancestor that is not an Expression. */ public ExpressionNode getExpressionOwner() { ExpressionNode parent = exprGetParent(); while((null != parent) && (parent instanceof Expression)) parent = parent.exprGetParent(); return parent; }