Top Description Fields Constructors Methods
org.jruby.ast

public Class SClassNode

extends Node
Class Inheritance
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor, org.jruby.parser.StaticScope

Singleton class definition.
class << anObject

end

Field Summary

Modifier and TypeField and Description
private final Node
private final int
private final Node
private final StaticScope
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
SClassNode(int line, Node recvNode, StaticScope scope, Node bodyNode, int endLine)

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 Node

Returns:

the contents
getBodyNode
()

Gets the body of this class.

public int
getEndLine()

Gets line where the 'end' was for this module.

public NodeType
public Node

Returns:

Returns a Node
getReceiverNode
()

Gets the receiverNode.

public StaticScope

Returns:

the scope
getScope
()

Gets the scope of this class

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

bodyNodeback to summary
private final Node bodyNode
endLineback to summary
private final int endLine
receiverNodeback to summary
private final Node receiverNode
scopeback to summary
private final StaticScope scope

Constructor Detail

SClassNodeback to summary
public SClassNode(int line, Node recvNode, StaticScope scope, Node bodyNode, int endLine)

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.

getBodyNodeback to summary
public Node getBodyNode()

Gets the body of this class.

Returns:Node

the contents

getEndLineback to summary
public int getEndLine()

Gets line where the 'end' was for this module.

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getReceiverNodeback to summary
public Node getReceiverNode()

Gets the receiverNode.

Returns:Node

Returns a Node

getScopeback to summary
public StaticScope getScope()

Gets the scope of this class

Returns:StaticScope

the scope