本文整理了Java中org.apache.xpath.Expression.exprGetParent()
方法的一些代码示例,展示了Expression.exprGetParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Expression.exprGetParent()
方法的具体详情如下:
包路径:org.apache.xpath.Expression
类名称:Expression
方法名:exprGetParent
暂无
代码示例来源:origin: robovm/robovm
/**
* 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;
}
代码示例来源:origin: robovm/robovm
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: xalan/xalan
/**
* 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;
}
代码示例来源:origin: xalan/xalan
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: robovm/robovm
/**
* Assert that the expression is a LocPathIterator, and, if
* not, try to give some diagnostic info.
*/
private final void assertIsLocPathIterator(Expression expr1, ExpressionOwner eo)
throws RuntimeException
{
if(!(expr1 instanceof LocPathIterator))
{
String errMsg;
if(expr1 instanceof Variable)
{
errMsg = "Programmer's assertion: expr1 not an iterator: "+
((Variable)expr1).getQName();
}
else
{
errMsg = "Programmer's assertion: expr1 not an iterator: "+
expr1.getClass().getName();
}
throw new RuntimeException(errMsg + ", "+
eo.getClass().getName()+" "+
expr1.exprGetParent());
}
}
代码示例来源:origin: xalan/xalan
/**
* Assert that the expression is a LocPathIterator, and, if
* not, try to give some diagnostic info.
*/
private final void assertIsLocPathIterator(Expression expr1, ExpressionOwner eo)
throws RuntimeException
{
if(!(expr1 instanceof LocPathIterator))
{
String errMsg;
if(expr1 instanceof Variable)
{
errMsg = "Programmer's assertion: expr1 not an iterator: "+
((Variable)expr1).getQName();
}
else
{
errMsg = "Programmer's assertion: expr1 not an iterator: "+
expr1.getClass().getName();
}
throw new RuntimeException(errMsg + ", "+
eo.getClass().getName()+" "+
expr1.exprGetParent());
}
}
代码示例来源:origin: robovm/robovm
/**
* 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!");
}
代码示例来源:origin: xalan/xalan
/**
* 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!");
}
代码示例来源:origin: ibinti/bugvm
/**
* 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;
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* 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;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* 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;
}
代码示例来源:origin: MobiVM/robovm
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: ibinti/bugvm
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: MobiVM/robovm
/**
* 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;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* 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;
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Set the raw expression object for this object.
*
*
* @param exp the raw Expression object, which should not normally be null.
*/
public void setExpression(Expression exp)
{
if(null != m_mainExp)
exp.exprSetParent(m_mainExp.exprGetParent()); // a bit bogus
m_mainExp = exp;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* 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;
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* 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;
}
内容来源于网络,如有侵权,请联系作者删除!