Top Description Fields Constructors Methods
org.jruby.ast

public Class DRegexpNode

extends DNode
implements ILiteralNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.types.ILiteralNode
Imports
org.jcodings.Encoding, org.jruby.ast.types.ILiteralNode, org.jruby.ast.visitor.NodeVisitor, org.jruby.util.RegexpOptions

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

Field Summary

Modifier and TypeField and Description
private final RegexpOptions
Inherited from org.jruby.ast.DNode:
encoding

Constructor Summary

AccessConstructor and Description
public
DRegexpNode(int line, RegexpOptions options, Encoding encoding)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Overrides org.jruby.ast.ListNode.accept.

Accept for the visitor pattern.

public NodeType
public boolean

Returns:

Returns a boolean
getOnce
()

Gets the once.

public RegexpOptions
getOptions()

Gets the options.

Inherited from org.jruby.ast.DNode:
getEncoding

Field Detail

optionsback to summary
private final RegexpOptions options

Constructor Detail

DRegexpNodeback to summary
public DRegexpNode(int line, RegexpOptions options, Encoding encoding)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Overrides org.jruby.ast.ListNode.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

Annotations
@Override
getNodeTypeback to summary
public NodeType getNodeType()

Overrides org.jruby.ast.ListNode.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

Annotations
@Override
getOnceback to summary
public boolean getOnce()

Gets the once.

Returns:boolean

Returns a boolean

getOptionsback to summary
public RegexpOptions getOptions()

Gets the options.