public final class GlobalParam extends GlobalVariable
references
Constructor and Description |
---|
GlobalParam() |
Modifier and Type | Method and Description |
---|---|
GroundedValue |
evaluateVariable(XPathContext context)
Evaluate the variable
|
GroundedValue |
evaluateVariable(XPathContext context,
Component target)
Evaluate the variable
|
protected java.lang.String |
getFlags() |
java.lang.String |
getTracingTag()
Get a string used to identify this kind of component when used in tracing output
|
boolean |
isImplicitlyRequiredParam()
Ask whether this variable represents a required parameter
|
void |
setImplicitlyRequiredParam(boolean requiredParam)
Indicate that this parameter is implicitly required, because the default value does not match the type
|
actuallyEvaluate, addReference, compile, export, gatherProperties, getBinderySlotNumber, getDescription, getHostLanguage, getIntegerBoundsForVariable, getLocalSlotNumber, getObjectName, getOriginalVariable, getProperty, getRequiredType, getSelectValue, getSymbolicName, getUltimateOriginalVariable, getVariableQName, init, isAssignable, isGlobal, isIndexedVariable, isPrivate, isRequiredParam, isStatic, isUnused, iterateReferences, lookForCycles, registerReference, setAssignable, setBinderySlotNumber, setContainsLocals, setDependencies, setIndexedVariable, setOriginalVariable, setPrivate, setRequiredParam, setRequiredType, setStatic, setUnused, setVariableQName, typeCheck
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getChildExpression, getColumnNumber, getComponentName, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, isExportable, makeDeclaringComponent, obtainDeclaringComponent, saveLocation, setBody, setChildExpression, setColumnNumber, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnNumber, getLineNumber, getPublicId, getSystemId
getBody, setBody
getLocation
public void setImplicitlyRequiredParam(boolean requiredParam)
requiredParam
- true if this is a required parameterpublic boolean isImplicitlyRequiredParam()
public java.lang.String getTracingTag()
Actor
getTracingTag
in interface TraceableComponent
getTracingTag
in class GlobalVariable
public GroundedValue evaluateVariable(XPathContext context, Component target) throws XPathException
evaluateVariable
in class GlobalVariable
context
- the XPath dynamic contexttarget
- the component representing this variable (in the context of a package where it is used)XPathException
- if evaluation of the variable fails with a dynamic errorpublic GroundedValue evaluateVariable(XPathContext context) throws XPathException
evaluateVariable
in interface Binding
evaluateVariable
in class GlobalVariable
context
- the XPath dynamic evaluation contextXPathException
- if an error occurs while evaluating
the variableprotected java.lang.String getFlags()
getFlags
in class GlobalVariable
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.