public class RegexpNode extends Node implements ILiteralNode
| Modifier and Type | Field and Description |
|---|---|
private RegexpOptions |
options |
private RubyRegexp |
pattern |
private org.jruby.util.ByteList |
value |
EMPTY_LIST| Constructor and Description |
|---|
RegexpNode(ISourcePosition position,
org.jruby.util.ByteList value,
RegexpOptions options) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor) |
java.util.List<Node> |
childNodes() |
org.jcodings.Encoding |
getEncoding() |
NodeType |
getNodeType() |
RegexpOptions |
getOptions()
Gets the options.
|
RubyRegexp |
getPattern() |
org.jruby.util.ByteList |
getValue()
Gets the value.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
RubyRegexp |
loadPattern(Ruby runtime) |
void |
setPattern(RubyRegexp p) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate RubyRegexp pattern
private final org.jruby.util.ByteList value
private final RegexpOptions options
public RegexpNode(ISourcePosition position, org.jruby.util.ByteList value, RegexpOptions options)
public org.jcodings.Encoding getEncoding()
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public RegexpOptions getOptions()
public org.jruby.util.ByteList getValue()
public RubyRegexp loadPattern(Ruby runtime)
public void setPattern(RubyRegexp p)
public RubyRegexp getPattern()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)