Package net.sf.saxon.expr.parser
Class ContextItemStaticInfo
java.lang.Object
net.sf.saxon.expr.parser.ContextItemStaticInfo
- Direct Known Subclasses:
ContextItemStaticInfoEE
A data structure that represents the required type of the context item, together
with information about whether it is known to be present or absent or whether it
is not known statically whether it is present or absent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextItemStaticInfo
static final ContextItemStaticInfo
Default information when nothing else is known -
Constructor Summary
ConstructorsConstructorDescriptionContextItemStaticInfo
(ItemType itemType, boolean maybeUndefined) Create a ContextItemStaticInfo -
Method Summary
Modifier and TypeMethodDescriptionGet the static type of the context item as a UTypeGet the static type of the context item.boolean
boolean
Ask whether it is possible that the context item is absentboolean
void
Set streaming posture.void
Set streaming posture.void
void
setParentless
(boolean parentless)
-
Field Details
-
DEFAULT
Default information when nothing else is known -
ABSENT
-
-
Constructor Details
-
ContextItemStaticInfo
Create a ContextItemStaticInfo- Parameters:
itemType
- the item type of the context item. If the context item is absent, set this toErrorType.getInstance()
.maybeUndefined
- set to true if it is possible (or certain) that the context item will be absent.
-
-
Method Details
-
setContextSettingExpression
-
getContextSettingExpression
-
getItemType
Get the static type of the context item. If the context item is known to be undefined, the returned value is- Returns:
- the static context item type
-
getContextItemUType
Get the static type of the context item as a UType- Returns:
- the static context item type
-
isPossiblyAbsent
public boolean isPossiblyAbsent()Ask whether it is possible that the context item is absent- Returns:
- true if the context item might be absent
-
setContextPostureStriding
public void setContextPostureStriding()Set streaming posture. The Saxon-HE version of this method has no effect. -
setContextPostureGrounded
public void setContextPostureGrounded()Set streaming posture. The Saxon-HE version of this method has no effect. -
isStrictStreamabilityRules
public boolean isStrictStreamabilityRules() -
setParentless
public void setParentless(boolean parentless) -
isParentless
public boolean isParentless()
-