Class: Saxon::XSLT::Executable
- Inherits:
-
Object
- Object
- Saxon::XSLT::Executable
- Defined in:
- lib/saxon/xslt/executable.rb
Overview
Represents a compiled XPaGth query ready to be executed
Instance Attribute Summary collapse
-
#static_context ⇒ XSLT::StaticContext
readonly
The XPath’s static context.
Instance Method Summary collapse
- #apply_templates(source, opts = {}) ⇒ Object
- #call_template(template_name, opts = {}) ⇒ Object
-
#initialize(s9_xslt_executable, static_context) ⇒ Executable
constructor
private
A new instance of Executable.
-
#to_java ⇒ net.sf.saxon.s9api.XsltExecutable
The underlying Saxon
XsltExecutable.
Constructor Details
#initialize(s9_xslt_executable, static_context) ⇒ Executable
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 a new instance of Executable.
18 19 20 |
# File 'lib/saxon/xslt/executable.rb', line 18 def initialize(s9_xslt_executable, static_context) @s9_xslt_executable, @static_context = s9_xslt_executable, static_context end |
Instance Attribute Details
#static_context ⇒ XSLT::StaticContext (readonly)
Returns the XPath’s static context.
11 12 13 |
# File 'lib/saxon/xslt/executable.rb', line 11 def static_context @static_context end |
Instance Method Details
#apply_templates(source, opts = {}) ⇒ Object
22 23 24 |
# File 'lib/saxon/xslt/executable.rb', line 22 def apply_templates(source, opts = {}) transformation(opts).apply_templates(source) end |
#call_template(template_name, opts = {}) ⇒ Object
26 27 28 |
# File 'lib/saxon/xslt/executable.rb', line 26 def call_template(template_name, opts = {}) transformation(opts).call_template(template_name) end |
#to_java ⇒ net.sf.saxon.s9api.XsltExecutable
Returns the underlying Saxon XsltExecutable.
32 33 34 |
# File 'lib/saxon/xslt/executable.rb', line 32 def to_java @s9_xslt_executable end |