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 ContextItemStaticInfoprotected Expressionstatic final ContextItemStaticInfoDefault information when nothing else is knownprotected booleanprotected final SequenceTypeprotected final Optionality -
Constructor Summary
ConstructorsModifierConstructorDescriptionContextItemStaticInfo(ItemType itemType) ContextItemStaticInfo(ItemType itemType, Optionality status) Create a ContextItemStaticInfoContextItemStaticInfo(SequenceType sequenceType, Optionality status) protectedContextItemStaticInfo(SequenceType sequenceType, Optionality status, boolean parentless) -
Method Summary
Modifier and TypeMethodDescriptionintGet the cardinality of the context value.Get the static type of the context item as a UTypeGet the static type of the context item.booleanbooleanvoidSet streaming posture.voidSet streaming posture.voidvoidsetParentless(boolean parentless) withContextSetter(Expression setter)
-
Field Details
-
sequenceType
-
status
-
contextSettingExpression
-
parentless
protected boolean parentless -
DEFAULT
Default information when nothing else is known -
ABSENT
-
-
Constructor Details
-
ContextItemStaticInfo
-
ContextItemStaticInfo
Create a ContextItemStaticInfo- Parameters:
itemType- the item type of the context item. If the context item is absent, set this toErrorType.getInstance().status- indicates whether the context value is required, optional, or disallowed.
-
ContextItemStaticInfo
-
ContextItemStaticInfo
-
-
Method Details
-
withStatusUnknown
-
withContextSetter
-
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
-
getCardinality
public int getCardinality()Get the cardinality of the context value. XPath 4.0 allows the context value to be any sequence- Returns:
- the cardinality of the context value
-
getOptionality
-
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()
-