public class ClassNode extends Node implements IScopingNode
containsVariableAssignment, newline| Constructor and Description |
|---|
ClassNode(ISourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode,
Node superNode,
int endLine) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
boolean |
executesOnce() |
Node |
getBodyNode()
Gets the body of this class.
|
Colon3Node |
getCPath()
Gets the className.
|
int |
getEndLine()
Gets line where the 'end' was for this module.
|
NodeType |
getNodeType() |
StaticScope |
getScope()
Get the static scoping information.
|
Node |
getSuperNode()
Gets the superNode.
|
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getFile, getLine, getNodeName, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString, toStringInternalpublic ClassNode(ISourcePosition position, Colon3Node cpath, StaticScope scope, Node bodyNode, Node superNode, int endLine)
public NodeType getNodeType()
getNodeType in class Nodepublic <T> T accept(NodeVisitor<T> iVisitor)
public Node getBodyNode()
getBodyNode in interface IScopingNodepublic int getEndLine()
public StaticScope getScope()
getScope in interface IScopingNodepublic Colon3Node getCPath()
getCPath in interface IScopingNodepublic Node getSuperNode()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic boolean executesOnce()
executesOnce in class NodeCopyright © 2001-2019 JRuby. All Rights Reserved.