Skip to content

Commit

Permalink
Generate (78f8712)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 29, 2024
1 parent 28c9038 commit d3a5a9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 13 additions & 13 deletions REXML/Parsers/BaseParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h3>Public Class Methods</h3>


<div class="method-source-code" id="new-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 162</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 163</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>( <span class="ruby-identifier">source</span> )
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">stream</span> = <span class="ruby-identifier">source</span>
<span class="ruby-ivar">@listeners</span> = []
Expand Down Expand Up @@ -363,7 +363,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="add_listener-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 171</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 172</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_listener</span>( <span class="ruby-identifier">listener</span> )
<span class="ruby-ivar">@listeners</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">listener</span>
<span class="ruby-keyword">end</span></pre>
Expand All @@ -386,7 +386,7 @@ <h3>Public Instance Methods</h3>
<p>Returns true if there are no more events</p>

<div class="method-source-code" id="empty-3F-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 202</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 203</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">empty?</span>
<span class="ruby-keyword">return</span> (<span class="ruby-ivar">@source</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@stack</span>.<span class="ruby-identifier">empty?</span>)
<span class="ruby-keyword">end</span></pre>
Expand All @@ -409,7 +409,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="entity-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 534</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 535</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">entity</span>( <span class="ruby-identifier">reference</span>, <span class="ruby-identifier">entities</span> )
<span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">entities</span>

Expand Down Expand Up @@ -438,7 +438,7 @@ <h3>Public Instance Methods</h3>
<p>Returns true if there are more events. Synonymous with !empty?</p>

<div class="method-source-code" id="has_next-3F-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 207</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 208</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">has_next?</span>
<span class="ruby-keyword">return</span> <span class="ruby-operator">!</span>(<span class="ruby-ivar">@source</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@stack</span>.<span class="ruby-identifier">empty?</span>)
<span class="ruby-keyword">end</span></pre>
Expand All @@ -461,7 +461,7 @@ <h3>Public Instance Methods</h3>
<p>Escapes all possible entities</p>

<div class="method-source-code" id="normalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 545</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 546</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">normalize</span>( <span class="ruby-identifier">input</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">entity_filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-identifier">copy</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">clone</span>
<span class="ruby-comment"># Doing it like this rather than in a loop improves the speed</span>
Expand Down Expand Up @@ -495,7 +495,7 @@ <h3>Public Instance Methods</h3>
<p>Peek at the <code>depth</code> event in the stack. The first element on the stack is at depth 0. If <code>depth</code> is -1, will parse to the end of the input stream and return the last event, which is always :end_document. Be aware that this causes the stream to be parsed up to the <code>depth</code> event, so you can effectively pre-parse the entire document (pull the entire thing into memory) using this method.</p>

<div class="method-source-code" id="peek-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 223</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 224</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">peek</span> <span class="ruby-identifier">depth</span>=<span class="ruby-value">0</span>
<span class="ruby-identifier">raise</span> <span class="ruby-node">%Q[Illegal argument &quot;#{depth}&quot;]</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">depth</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">-1</span>
<span class="ruby-identifier">temp</span> = []
Expand Down Expand Up @@ -528,7 +528,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="position-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 192</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 193</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">position</span>
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@source</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:position</span>
<span class="ruby-ivar">@source</span>.<span class="ruby-identifier">position</span>
Expand Down Expand Up @@ -556,7 +556,7 @@ <h3>Public Instance Methods</h3>
<p>Returns the next event. This is a <code>PullEvent</code> object.</p>

<div class="method-source-code" id="pull-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 238</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 239</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pull</span>
<span class="ruby-ivar">@source</span>.<span class="ruby-identifier">drop_parsed_content</span>

Expand Down Expand Up @@ -585,7 +585,7 @@ <h3>Public Instance Methods</h3>


<div class="method-source-code" id="stream-3D-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 180</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 181</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">stream=</span>( <span class="ruby-identifier">source</span> )
<span class="ruby-ivar">@source</span> = <span class="ruby-constant">SourceFactory</span>.<span class="ruby-identifier">create_from</span>( <span class="ruby-identifier">source</span> )
<span class="ruby-ivar">@closed</span> = <span class="ruby-keyword">nil</span>
Expand All @@ -594,7 +594,7 @@ <h3>Public Instance Methods</h3>
<span class="ruby-ivar">@tags</span> = []
<span class="ruby-ivar">@stack</span> = []
<span class="ruby-ivar">@entities</span> = []
<span class="ruby-ivar">@namespaces</span> = {}
<span class="ruby-ivar">@namespaces</span> = {<span class="ruby-string">&quot;xml&quot;</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-constant">Private</span><span class="ruby-operator">::</span><span class="ruby-constant">XML_PREFIXED_NAMESPACE</span>}
<span class="ruby-ivar">@namespaces_restore_stack</span> = []
<span class="ruby-keyword">end</span></pre>
</div>
Expand All @@ -616,7 +616,7 @@ <h3>Public Instance Methods</h3>
<p>Unescapes all possible entities</p>

<div class="method-source-code" id="unnormalize-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 561</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 562</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">unnormalize</span>( <span class="ruby-identifier">string</span>, <span class="ruby-identifier">entities</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">filter</span>=<span class="ruby-keyword">nil</span> )
<span class="ruby-keyword">if</span> <span class="ruby-identifier">string</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;\r&quot;</span>)
<span class="ruby-identifier">rv</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-constant">Private</span><span class="ruby-operator">::</span><span class="ruby-constant">CARRIAGE_RETURN_NEWLINE_PATTERN</span>, <span class="ruby-string">&quot;\n&quot;</span> )
Expand Down Expand Up @@ -679,7 +679,7 @@ <h3>Public Instance Methods</h3>
<p>Push an event back on the head of the stream. This method has (theoretically) infinite depth.</p>

<div class="method-source-code" id="unshift-source">
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 213</span>
<pre><span class="ruby-comment"># File lib/rexml/parsers/baseparser.rb, line 214</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">unshift</span> <span class="ruby-identifier">token</span>
<span class="ruby-ivar">@stack</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-identifier">token</span>)
<span class="ruby-keyword">end</span></pre>
Expand Down
2 changes: 2 additions & 0 deletions REXML/Parsers/BaseParser/Private.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ <h3>Constants</h3>
<dd>
<dt id="TAG_PATTERN">TAG_PATTERN
<dd>
<dt id="XML_PREFIXED_NAMESPACE">XML_PREFIXED_NAMESPACE
<dd>
</dl>
</section>

Expand Down

0 comments on commit d3a5a9a

Please sign in to comment.