Package org.jruby.ast
Class SClassNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.SClassNode
Singleton class definition.
class << anObject end
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionSClassNode
(int line, Node recvNode, StaticScope scope, Node bodyNode, int endLine) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the body of this class.int
Gets line where the 'end' was for this module.Gets the receiverNode.getScope()
Gets the scope of this classMethods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
SClassNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBodyNode
Gets the body of this class.- Returns:
- the contents
-
getEndLine
public int getEndLine()Gets line where the 'end' was for this module. -
getScope
Gets the scope of this class- Returns:
- the scope
-
getReceiverNode
Gets the receiverNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-