use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class OpIntersect method expected_args.
/**
* Obtain a list of expected arguments.
*
* @return Result of operation.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
SeqType st = new SeqType(SeqType.OCC_STAR);
_expected_args.add(st);
_expected_args.add(st);
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class DefaultEvaluator method visit.
/**
* visit treat-as expression
*
* @param taexp
* is the treat-as expression.
* @return a new function
*/
public Object visit(TreatAsExpr taexp) {
ResultSequence rs = (ResultSequence) taexp.left().accept(this);
SequenceType seqt = (SequenceType) taexp.right();
SeqType st = new SeqType(seqt, _sc, rs);
try {
st.match(rs);
} catch (DynamicError err) {
report_error(err);
}
return rs;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnStringLength method expected_args.
/**
* Calculate the expected arguments.
*
* @return The expected arguments.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_QMARK));
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnTokenize method expected_args.
/**
* Obtain a list of expected arguments.
*
* @return Result of operation.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
SeqType arg = new SeqType(new XSString(), SeqType.OCC_QMARK);
_expected_args.add(arg);
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
}
return _expected_args;
}
use of org.eclipse.wst.xml.xpath2.processor.internal.SeqType in project webtools.sourceediting by eclipse.
the class FnTranslate method expected_args.
/**
* Calculate the expected arguments.
*
* @return The expected arguments.
*/
public static synchronized Collection expected_args() {
if (_expected_args == null) {
_expected_args = new ArrayList();
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_QMARK));
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
_expected_args.add(new SeqType(new XSString(), SeqType.OCC_NONE));
}
return _expected_args;
}
Aggregations