org.jrubyparser.ast
Class DRegexpNode
java.lang.Object
org.jrubyparser.ast.Node
org.jrubyparser.ast.ListNode
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.
| 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 |
DRegexpNode
public DRegexpNode(SourcePosition position,
RegexpOptions options)
DRegexpNode
public DRegexpNode(SourcePosition position,
RegexpOptions options,
boolean is19)
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.