org.jruby.ast
Class BackRefNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.BackRefNode
All Implemented Interfaces:
INode, java.io.Serializable

public class BackRefNode
extends AbstractNode

Regexp backref. generated when one of the following special global variables are found - $& last succesfull match - $+ highest numbered group matched in last successful match. - $` what precedes the last successful match - $' what follows the last successful match

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
BackRefNode(ISourcePosition position, char type)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 char getType()
          Gets the type.
 
Methods inherited from class org.jruby.ast.AbstractNode
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackRefNode

public BackRefNode(ISourcePosition position,
                   char type)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getType

public char getType()
Gets the type. the type is the character which generates the backreference

Returns:
type


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.