org.ucl.xpath
Class SeqType
java.lang.Object
org.ucl.xpath.SeqType
- public class SeqType
- extends java.lang.Object
represents a Sequence types
used for matching expected arguments of functions
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCC_NONE
public static final int OCC_NONE
- See Also:
- Constant Field Values
OCC_STAR
public static final int OCC_STAR
- See Also:
- Constant Field Values
OCC_PLUS
public static final int OCC_PLUS
- See Also:
- Constant Field Values
OCC_QMARK
public static final int OCC_QMARK
- See Also:
- Constant Field Values
SeqType
public SeqType(AnyType t,
int occ)
- sequence type
- Parameters:
t - is any typeocc - is an integer in the sequence.
SeqType
public SeqType(int occ)
- Parameters:
occ - is an integer in the sequence.
SeqType
public SeqType(SequenceType st,
StaticContext sc)
- Parameters:
st - is a sequence type.sc - is a static context.
SeqType
public SeqType(AnyType t)
- Parameters:
t - is an any type.
occurence
public int occurence()
- Returns:
- an integer.
type
public AnyType type()
- Returns:
- a type.
match
public ResultSequence match(ResultSequence args)
throws DynamicError
- matches args
- Parameters:
args - is a result sequence
- Returns:
- a result sequence
- Throws:
a - dynamic error
DynamicError