Package org.jruby.ast
Class DRegexpNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ListNode
org.jruby.ast.DNode
org.jruby.ast.DRegexpNode
- All Implemented Interfaces:
Iterable<Node>
,ILiteralNode
A regexp which contains some expressions which will need to be evaluated every time the regexp
is used for a match.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionDRegexpNode
(int line, RegexpOptions options, org.jcodings.Encoding encoding) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.boolean
getOnce()
Gets the once.Gets the options.Methods inherited from class org.jruby.ast.DNode
getEncoding
Methods inherited from class org.jruby.ast.ListNode
add, addAll, addAll, addAll, addAllInternal, addInternal, childNodes, children, get, getLast, isEmpty, iterator, size
Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DRegexpNode
-
-
Method Details
-
getNodeType
- Overrides:
getNodeType
in classListNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getOnce
public boolean getOnce()Gets the once.- Returns:
- Returns a boolean
-
getOptions
Gets the options.
-