|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.Node
org.jruby.ast.ClassNode
public class ClassNode
A class statement. A class statement is defined by its name, its supertype and its body. The body is a separate naming scope. This node is for a regular class definition, Singleton classes get their own node, the SClassNode
Field Summary |
---|
Fields inherited from class org.jruby.ast.Node |
---|
instruction, nodeId |
Constructor Summary | |
---|---|
ClassNode(ISourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode,
Node superNode)
|
Method Summary | |
---|---|
Instruction |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
java.util.List |
childNodes()
|
Node |
getBodyNode()
Gets the body of this class. |
Colon3Node |
getCPath()
Gets the className. |
StaticScope |
getScope()
Get the static scoping information. |
Node |
getSuperNode()
Gets the superNode. |
java.lang.String |
toString()
|
Methods inherited from class org.jruby.ast.Node |
---|
addComment, addComments, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassNode(ISourcePosition position, Colon3Node cpath, StaticScope scope, Node bodyNode, Node superNode)
Method Detail |
---|
public Instruction accept(NodeVisitor iVisitor)
accept
in class Node
iVisitor
- the visitorpublic Node getBodyNode()
public StaticScope getScope()
public Colon3Node getCPath()
getCPath
in interface IScopingNode
public Node getSuperNode()
public java.util.List childNodes()
childNodes
in class Node
public java.lang.String toString()
toString
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |