|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.DRegexpNode
public class DRegexpNode
A regexp which contains some expressions which will need to be evaluated everytime the regexp is used for a match.
Field Summary |
---|
Fields inherited from class org.jruby.ast.Node |
---|
EMPTY_COMMENT_LIST, INVALID_POSITION, 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. |
RubyRegexp |
getOnceRegexp()
For regular expressions with /o flag |
int |
getOptions()
Gets the options. |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
|
void |
setOnceRegexp(RubyRegexp regexp)
For regular expressions with /o flag, the value in here can be used for subsequent evaluations. |
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, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DRegexpNode(ISourcePosition position)
public DRegexpNode(ISourcePosition position, DStrNode node, int options, boolean once)
public DRegexpNode(ISourcePosition position, int options, boolean once)
Method Detail |
---|
public Instruction accept(NodeVisitor iVisitor)
accept
in class ListNode
iVisitor
- the visitorpublic boolean getOnce()
public int getOptions()
public RubyRegexp getOnceRegexp()
public void setOnceRegexp(RubyRegexp regexp)
regexp
- public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
interpret
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |