org.jruby.ast
Class DRegexpNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ListNode
          extended by org.jruby.ast.DRegexpNode
All Implemented Interfaces:
java.io.Serializable, ILiteralNode, InstructionContext, ISourcePositionHolder

public class DRegexpNode
extends ListNode
implements 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

Author:
jpetersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
DRegexpNode(ISourcePosition position)
           
DRegexpNode(ISourcePosition position, DStrNode node, int options, boolean once)
           
DRegexpNode(ISourcePosition position, int options, boolean once)
           
 
Method Summary
 Instruction accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 boolean getOnce()
          Gets the once.
 int getOptions()
          Gets the options.
 
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, childNodes, get, getLast, prepend, size, toString
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DRegexpNode

public DRegexpNode(ISourcePosition position)

DRegexpNode

public DRegexpNode(ISourcePosition position,
                   DStrNode node,
                   int options,
                   boolean once)

DRegexpNode

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

accept

public Instruction accept(NodeVisitor iVisitor)
Accept for the visitor pattern.

Overrides:
accept in class ListNode
Parameters:
iVisitor - the visitor

getOnce

public boolean getOnce()
Gets the once.

Returns:
Returns a boolean

getOptions

public int getOptions()
Gets the options.

Returns:
Returns a int


Copyright © 2002-2007 JRuby Team. All Rights Reserved.