org.jruby.ast
Class DRegexpNode

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

public class DRegexpNode
extends AbstractNode
implements IListNode, ILiteralNode

Dynamic regexp node. a regexp is dynamic if it contains some expressions which will need to be evaluated everytime the regexp is used for a match

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

Constructor Summary
DRegexpNode(ISourcePosition position)
           
DRegexpNode(ISourcePosition position, int options, boolean once)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 IListNode add(INode node)
           
 boolean getOnce()
          Gets the once.
 int getOptions()
          Gets the options.
 java.util.Iterator iterator()
           
 void setOnce(boolean once)
          Sets the once.
 void setOptions(int options)
          Sets the options.
 int size()
           
 
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
 
Methods inherited from interface org.ablaf.ast.INode
getPosition
 

Constructor Detail

DRegexpNode

public DRegexpNode(ISourcePosition position)

DRegexpNode

public DRegexpNode(ISourcePosition position,
                   int options,
                   boolean once)
Method Detail

add

public IListNode add(INode node)
Specified by:
add in interface IListNode
See Also:
IListNode.add(INode)

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface IListNode
See Also:
IListNode.iterator()

size

public int size()
Specified by:
size in interface IListNode
See Also:
IListNode.size()

accept

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

Specified by:
accept in interface INode
Parameters:
iVisitor - the visitor

getOnce

public boolean getOnce()
Gets the once.

Returns:
Returns a boolean

setOnce

public void setOnce(boolean once)
Sets the once.

Parameters:
once - The once to set

getOptions

public int getOptions()
Gets the options.

Returns:
Returns a int

setOptions

public void setOptions(int options)
Sets the options.

Parameters:
options - The options to set


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.