Top Description Fields Constructors Methods
org.jruby.ast

public Class BackRefNode

extends Node
Class Inheritance
Imports
java.util.List, org.jcodings.specific.USASCIIEncoding, org.jruby.ast.visitor.NodeVisitor, org.jruby.util.ByteList, .DefinedMessage

Regexp back reference: - $& last successful match - $+ highest numbered group matched in last successful match. - $` what precedes the last successful match - $' what follows the last successful match

Field Summary

Modifier and TypeField and Description
private final char
type

the character which generated the back reference

Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
BackRefNode(int line, int type)

Method Summary

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

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

Accept for the visitor pattern.

public List<Node>
public ByteList
public NodeType
public char

Returns:

the character which generates the back reference
getType
()

Gets the type

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

typeback to summary
private final char type

the character which generated the back reference

Constructor Detail

BackRefNodeback to summary
public BackRefNode(int line, int type)

Method Detail

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

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

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

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

getByteNameback to summary
public ByteList getByteName()
getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getTypeback to summary
public char getType()

Gets the type

Returns:char

the character which generates the back reference