Class: Saxon::XSLT::EvaluationContext Private

Inherits:
Object
  • Object
show all
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

Modules: Common Classes: DSL

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#args_hash, #initialize

Instance Attribute Details

#default_collationString (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.

Returns:

  • (String)

    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_parametersHash<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.

Returns:



152
153
154
# File 'lib/saxon/xslt/evaluation_context.rb', line 152

def global_parameters
  @global_parameters
end

#initial_template_parametersHash<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.

Returns:



154
155
156
# File 'lib/saxon/xslt/evaluation_context.rb', line 154

def initial_template_parameters
  @initial_template_parameters
end

#initial_template_tunnel_parametersHash<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”.

Returns:



156
157
158
# File 'lib/saxon/xslt/evaluation_context.rb', line 156

def initial_template_tunnel_parameters
  @initial_template_tunnel_parameters
end

#static_parametersHash<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.

Returns:



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

Parameters:

  • block (Proc)

    the block of DSL calls to be executed

Returns:



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