Class: Saxon::XSLT::EvaluationContext Private
- Inherits:
-
Object
- Object
- Saxon::XSLT::EvaluationContext
- Includes:
- Common
- Defined in:
- lib/saxon/xslt/evaluation_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 evaluation context for an XSLT compiler, and stylesheets compiled using one. EvaluationContexts are immutable.
Defined Under Namespace
Instance Attribute Summary collapse
-
#default_collation ⇒ String
readonly
private
The default collation URI as a String.
-
#global_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value>
readonly
private
All the global parameters.
-
#initial_template_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value>
readonly
private
All the initial template parameters.
-
#initial_template_tunnel_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value>
readonly
private
All the initial template parameters with tunnelling = “yes”.
-
#static_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value>
readonly
private
All the static parameters.
Class Method Summary collapse
-
.define(block) ⇒ Saxon::XSLT::EvaluationContext
private
Executes the Proc/lambda passed in with a new instance of EvaluationContext as
self
, allowing the DSL methods to be called in a DSL-ish way.
Instance Method Summary collapse
-
#define(block) ⇒ Object
private
When passed a Proc, create a new EvaluationContext based on this one, with the same DSL available as in EvaluationContext.define.
Methods included from Common
Instance Attribute Details
#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.
148 149 150 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 148 def default_collation @default_collation end |
#global_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value> (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 All the global parameters.
152 153 154 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 152 def global_parameters @global_parameters end |
#initial_template_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value> (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 All the initial template parameters.
154 155 156 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 154 def initial_template_parameters @initial_template_parameters end |
#initial_template_tunnel_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value> (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 All the initial template parameters with tunnelling = “yes”.
156 157 158 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 156 def initial_template_tunnel_parameters @initial_template_tunnel_parameters end |
#static_parameters ⇒ Hash<Saxon::QName => Saxon::XDM::Value> (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 All the static parameters.
150 151 152 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 150 def static_parameters @static_parameters end |
Class Method Details
.define(block) ⇒ Saxon::XSLT::EvaluationContext
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::XSLT::EvaluationContext as self
, allowing the DSL methods to be called in a DSL-ish way
142 143 144 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 142 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.
When passed a Proc, create a new EvaluationContext based on this one, with the same DSL available as in define.
When passed nil, simply return the EvaluationContext unaltered.
162 163 164 |
# File 'lib/saxon/xslt/evaluation_context.rb', line 162 def define(block) block.nil? ? self : DSL.define(block, args_hash) end |