本文整理了Java中org.apache.xpath.objects.XObject.lessThan()
方法的一些代码示例,展示了XObject.lessThan()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject.lessThan()
方法的具体详情如下:
包路径:org.apache.xpath.objects.XObject
类名称:XObject
方法名:lessThan
[英]Tell if one object is less than the other.
[中]判断一个物体是否比另一个小。
代码示例来源:origin: robovm/robovm
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: xalan/xalan
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: robovm/robovm
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: xalan/xalan
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: MobiVM/robovm
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: ibinti/bugvm
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Apply the operation to two operands, and return the result.
*
*
* @param left non-null reference to the evaluated left operand.
* @param right non-null reference to the evaluated right operand.
*
* @return non-null reference to the XObject that represents the result of the operation.
*
* @throws javax.xml.transform.TransformerException
*/
public XObject operate(XObject left, XObject right)
throws javax.xml.transform.TransformerException
{
return left.lessThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
}
}
代码示例来源:origin: ibinti/bugvm
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: MobiVM/robovm
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Tell if one object is greater than the other.
*
* @param obj2 Object to compare this to
*
* @return True if this object is greater than the given object
*
* @throws javax.xml.transform.TransformerException
*/
public boolean greaterThan(XObject obj2)
throws javax.xml.transform.TransformerException
{
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function. Because the arguments
// are backwards, we call the opposite comparison
// function.
if (obj2.getType() == XObject.CLASS_NODESET)
return obj2.lessThan(this);
return this.num() > obj2.num();
}
内容来源于网络,如有侵权,请联系作者删除!