Class: ANTLR3::AST::RewriteRuleTokenStream

Inherits:
RewriteRuleElementStream show all
Defined in:
lib/antlr3/tree.rb

Overview

Special type of stream that is used internally by tree-building and tree- rewriting parsers.

Instance Method Summary collapse

Methods inherited from RewriteRuleElementStream

#add, #has_next?, #initialize, #next_tree, #reset, #size, #to_tree

Methods included from Error

EarlyExit, FailedPredicate, MismatchedNotSet, MismatchedRange, MismatchedSet, MismatchedToken, MismatchedTreeNode, MissingToken, NoViableAlternative, RewriteCardinalityError, RewriteEarlyExit, RewriteEmptyStream, UnwantedToken

Constructor Details

This class inherits a constructor from ANTLR3::AST::RewriteRuleElementStream

Instance Method Details

#dup(el) ⇒ Object

Raises:

  • (TypeError)

1338
1339
1340
# File 'lib/antlr3/tree.rb', line 1338

def dup( el )
  raise TypeError, "dup can't be called for a token stream"
end

#next_nodeObject


1331
1332
1333
# File 'lib/antlr3/tree.rb', line 1331

def next_node
  return @adaptor.create_with_payload( __next__ )
end