public final class AxisInfo extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static byte | ANCESTORConstant representing the ancestor axis | 
| static byte | ANCESTOR_OR_SELFConstant representing the ancestor-or-self axis | 
| static byte | ATTRIBUTEConstant representing the attribute axis | 
| static String[] | axisNameTable giving the name of each axis as used in XPath, for example "ancestor-or-self" | 
| static byte | CHILDConstant representing the child axis | 
| static byte | DESCENDANTConstant representing the descendant axis | 
| static byte | DESCENDANT_OR_SELFConstant representing the descendant-or-self axis | 
| static byte[] | excludeSelfAxisGive the corresponding axis if the self node is excluded. | 
| static byte | FOLLOWINGConstant representing the following axis | 
| static byte | FOLLOWING_SIBLINGConstant representing the following-sibling axis | 
| static byte[] | inverseAxisFor each axis, determine the inverse axis, in the sense that if A is on axis X starting at B,
 the B is on the axis inverseAxis[X] starting at A. | 
| static boolean[] | isForwardsTable indicating for each axis whether it is in forwards document order | 
| static boolean[] | isPeerAxisTable indicating for each axis whether it is a peer axis. | 
| static boolean[] | isSubtreeAxisTable indicating for each axis whether it is contained within the subtree
 rooted at the origin node. | 
| static byte | NAMESPACEConstant representing the namespace axis | 
| static byte | PARENTConstant representing the parent axis | 
| static byte | PRECEDINGConstant representing the preceding axis | 
| static byte | PRECEDING_OR_ANCESTORConstant representing the preceding-or-ancestor axis. | 
| static byte | PRECEDING_SIBLINGConstant representing the preceding-sibling axis | 
| static short[] | principalNodeTypeTable indicating the principal node type of each axis | 
| static UType[] | principalNodeUType | 
| static byte | SELFConstant representing the self axis | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | containsNodeKind(int axis,
                int nodeKind)Determine whether a given kind of node can be found on a given axis. | 
| static byte | getAxisNumber(String name)Resolve an axis name into a symbolic constant representing the axis | 
| static UType | getTargetUType(UType origin,
              byte axis)Given a context item type and an axis, determine the kinds of nodes that can be returned | 
| static boolean | isAlwaysEmpty(int axis,
             int nodeKind)Ask whether a given axis can contain any nodes when starting at the specified node kind. | 
public static final byte ANCESTOR
public static final byte ANCESTOR_OR_SELF
public static final byte ATTRIBUTE
public static final byte CHILD
public static final byte DESCENDANT
public static final byte DESCENDANT_OR_SELF
public static final byte FOLLOWING
public static final byte FOLLOWING_SIBLING
public static final byte NAMESPACE
public static final byte PARENT
public static final byte PRECEDING
public static final byte PRECEDING_SIBLING
public static final byte SELF
public static final byte PRECEDING_OR_ANCESTOR
public static final short[] principalNodeType
public static final UType[] principalNodeUType
public static final boolean[] isForwards
public static final boolean[] isPeerAxis
public static final boolean[] isSubtreeAxis
public static final String[] axisName
public static byte[] inverseAxis
public static byte[] excludeSelfAxis
public static byte getAxisNumber(String name) throws XPathException
name - the name of the axisXPathException - if the axis name is not one of the defined axespublic static boolean isAlwaysEmpty(int axis,
                    int nodeKind)
axis - the axis, for example ATTRIBUTEnodeKind - the node kind of the origin node, for example Type.ATTRIBUTEpublic static boolean containsNodeKind(int axis,
                       int nodeKind)
axis - the axis, for example ATTRIBUTEnodeKind - the node kind of the origin node, for example Type.ELEMENTpublic static UType getTargetUType(UType origin, byte axis)
origin - the context item type, as a UType representing one or more node kindsaxis - identifies the axisCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.