Class: Saxon::XPath::StaticContext Private
- Inherits:
-
Object
- Object
- Saxon::XPath::StaticContext
- Includes:
- Common
- Defined in:
- lib/saxon/xpath/static_context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Represents the static context for a compiled XPath. StaticContexts are immutable.
Defined Under Namespace
Instance Attribute Summary collapse
-
#declared_namespaces ⇒ Hash<String => String>
readonly
private
The declared namespaces, as a prefix => uri hash.
-
#declared_variables ⇒ Hash<Saxon::QName => Saxon::XPath::VariableDeclaration] the declared variables
readonly
private
Hash<Saxon::QName => Saxon::XPath::VariableDeclaration] the declared variables.
-
#default_collation ⇒ String
readonly
private
The default collation URI as a String.
Class Method Summary collapse
-
.define(block) ⇒ Saxon::XPath::StaticContext
private
Executes the Proc/lambda passed in with a new instance of StaticContext as
self
, allowing the DSL methods to be called in a DSL-ish way.
Instance Method Summary collapse
-
#define(block) ⇒ Object
private
Create a new StaticContext based on this one.
- #resolve_variable_qname(qname_or_string) ⇒ Saxon::QName private
Methods included from Common
Instance Attribute Details
#declared_namespaces ⇒ Hash<String => String> (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the declared namespaces, as a prefix => uri hash.
125 126 127 |
# File 'lib/saxon/xpath/static_context.rb', line 125 def declared_namespaces @declared_namespaces end |
#declared_variables ⇒ Hash<Saxon::QName => Saxon::XPath::VariableDeclaration] the declared variables (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Hash<Saxon::QName => Saxon::XPath::VariableDeclaration] the declared variables.
123 124 125 |
# File 'lib/saxon/xpath/static_context.rb', line 123 def declared_variables @declared_variables end |
#default_collation ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The default collation URI as a String.
121 122 123 |
# File 'lib/saxon/xpath/static_context.rb', line 121 def default_collation @default_collation end |
Class Method Details
.define(block) ⇒ Saxon::XPath::StaticContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Executes the Proc/lambda passed in with a new instance of Saxon::XPath::StaticContext as self
, allowing the DSL methods to be called in a DSL-ish way
116 117 118 |
# File 'lib/saxon/xpath/static_context.rb', line 116 def self.define(block) DSL.define(block) end |
Instance Method Details
#define(block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new Saxon::XPath::StaticContext based on this one. Passed Proc is evaluated in the same way as Saxon::XPath::StaticContext::DSL.define
141 142 143 |
# File 'lib/saxon/xpath/static_context.rb', line 141 def define(block) DSL.define(block, args_hash) end |
#resolve_variable_qname(qname) ⇒ Saxon::QName #resolve_variable_qname(string) ⇒ Saxon::QName
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
135 136 137 |
# File 'lib/saxon/xpath/static_context.rb', line 135 def resolve_variable_qname(qname_or_string) Saxon::QName.resolve(qname_or_string, declared_namespaces) end |