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.DNode
              extended by org.jruby.ast.DRegexpNode
All Implemented Interfaces:
ILiteralNode, ISourcePositionHolder

public class DRegexpNode
extends DNode
implements ILiteralNode

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.DNode
encoding
 
Fields inherited from class org.jruby.ast.Node
ASSIGNMENT_BYTELIST, CLASS_VARIABLE_BYTELIST, CONSTANT_BYTELIST, EXPRESSION_BYTELIST, FALSE_BYTELIST, GLOBAL_VARIABLE_BYTELIST, INSTANCE_VARIABLE_BYTELIST, LOCAL_VARIABLE_BYTELIST, LOCAL_VARIABLE_IN_BLOCK_BYTELIST, METHOD_BYTELIST, NIL_BYTELIST, SELF_BYTELIST, SUPER_BYTELIST, TRUE_BYTELIST, YIELD_BYTELIST
 
Constructor Summary
DRegexpNode(ISourcePosition position, RegexpOptions options)
           
DRegexpNode(ISourcePosition position, RegexpOptions options, boolean is19)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
protected  RubyString allocateString(Ruby runtime)
           
 NodeType getNodeType()
           
 boolean getOnce()
          Gets the once.
 RegexpOptions getOptions()
          Gets the options.
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 boolean is19()
           
 
Methods inherited from class org.jruby.ast.DNode
appendToString, buildDynamicString, definition, isSameEncoding
 
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, childNodes, get, getLast, prepend, size
 
Methods inherited from class org.jruby.ast.Node
assign, createList, getNodeName, getPosition, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DRegexpNode

public DRegexpNode(ISourcePosition position,
                   RegexpOptions options)

DRegexpNode

public DRegexpNode(ISourcePosition position,
                   RegexpOptions options,
                   boolean is19)
Method Detail

getNodeType

public NodeType getNodeType()
Overrides:
getNodeType in class ListNode
Returns:
the nodeId

allocateString

protected RubyString allocateString(Ruby runtime)
Overrides:
allocateString in class DNode

is19

public boolean is19()
Overrides:
is19 in class DNode

accept

public java.lang.Object 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 RegexpOptions getOptions()
Gets the options.

Returns:
Returns a int

interpret

public IRubyObject interpret(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block aBlock)
Overrides:
interpret in class DNode


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