Top Description Fields Constructors Methods
org.jruby.ast

public Class RegexpNode

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

Represents a simple regular expression literal.

Field Summary

Modifier and TypeField and Description
private final RegexpOptions
private final ByteList
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
RegexpNode(int line, ByteList value, RegexpOptions options)

Method Summary

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

Implements abstract org.jruby.ast.Node.accept.

public List<Node>
public Encoding
public NodeType
public RegexpOptions
getOptions()

Gets the options.

public ByteList

Returns:

Returns a ByteList
getValue
()

Gets the value.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

optionsback to summary
private final RegexpOptions options
valueback to summary
private final ByteList value

Constructor Detail

RegexpNodeback to summary
public RegexpNode(int line, ByteList value, RegexpOptions options)

Method Detail

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

Implements abstract org.jruby.ast.Node.accept.

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getEncodingback to summary
public Encoding getEncoding()
getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

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

the nodeId

getOptionsback to summary
public RegexpOptions getOptions()

Gets the options.

getValueback to summary
public ByteList getValue()

Gets the value.

Returns:ByteList

Returns a ByteList