Package org.jruby.ast
Class RegexpNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.RegexpNode
- All Implemented Interfaces:
ILiteralNode
Represents a simple regular expression literal.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) org.jcodings.Encoding
Gets the options.getValue()
Gets the value.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
-
Constructor Details
-
RegexpNode
-
-
Method Details
-
getEncoding
public org.jcodings.Encoding getEncoding() -
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
-
getOptions
Gets the options. -
getValue
Gets the value.- Returns:
- Returns a ByteList
-
childNodes
- Specified by:
childNodes
in classNode
-