use of org.eclipse.wst.xml.xpath2.processor.internal.ast.InstOfExpr in project webtools.sourceediting by eclipse.
the class DefaultEvaluator method visit.
/**
* visit instance of expression
*
* @param ioexp
* is the instance of expression.
* @return a new function
*/
public Object visit(InstOfExpr ioexp) {
// get the value
ResultSequence rs = (ResultSequence) ioexp.left().accept(this);
// get the sequence type
SequenceType seqt = (SequenceType) ioexp.right();
return ResultSequenceFactory.create_new(new XSBoolean(isInstanceOf(rs, seqt)));
}
Aggregations