com.icl.saxon

Interface Binding

public interface Binding

Binding is a interface used to mark objects that represent a variable declaration
Method Summary
ValueconstantValue()
Get the value of the variable, if known statically.
intgetDataType()
Get the data type, if known statically.
intgetSlotNumber()
Determine a slot number for the variable.
intgetVariableFingerprint()
Establish the fingerprint of the name of this variable.
StringgetVariableName()
Get the name of the variable, to use in diagnostics
booleanisAssignable()
Determine whether the variable is assignable using saxon:assign
booleanisGlobal()
Determine whether this variable is global

Method Detail

constantValue

public Value constantValue()
Get the value of the variable, if known statically. If the value is not known statically, return null.

getDataType

public int getDataType()
Get the data type, if known statically. This will be a value such as Value.BOOLEAN, Value.STRING. If the data type is not known statically, return Value.ANY.

getSlotNumber

public int getSlotNumber()
Determine a slot number for the variable.

getVariableFingerprint

public int getVariableFingerprint()
Establish the fingerprint of the name of this variable.

getVariableName

public String getVariableName()
Get the name of the variable, to use in diagnostics

isAssignable

public boolean isAssignable()
Determine whether the variable is assignable using saxon:assign

isGlobal

public boolean isGlobal()
Determine whether this variable is global