org.jruby.ast
Class DRegexpNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
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
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 |
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)
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.