org.jrubyparser.ast
Class DRegexpNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.ListNode
          extended by org.jrubyparser.ast.DRegexpNode
All Implemented Interfaces:
ILiteralNode, ISourcePositionHolder

public class DRegexpNode
extends ListNode
implements ILiteralNode

A regexp which contains some expressions which will need to be evaluated everytime the regexp is used for a match.


Constructor Summary
DRegexpNode(SourcePosition position, RegexpOptions options)
           
DRegexpNode(SourcePosition position, RegexpOptions options, boolean is19)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 NodeType getNodeType()
           
 RegexpOptions getOptions()
          Gets the options.
 boolean isSame(Node other)
          Checks node for 'sameness' for diffing.
 
Methods inherited from class org.jrubyparser.ast.ListNode
add, addAll, addAll, get, getLast, prepend, size
 
Methods inherited from class org.jrubyparser.ast.Node
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DRegexpNode

public DRegexpNode(SourcePosition position,
                   RegexpOptions options)

DRegexpNode

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

isSame

public boolean isSame(Node other)
Checks node for 'sameness' for diffing.

Overrides:
isSame in class ListNode
Parameters:
other - to be compared to
Returns:
Returns a boolean

getNodeType

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

accept

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

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

getOptions

public RegexpOptions getOptions()
Gets the options.



Copyright © 2013. All Rights Reserved.