|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.AbstractNode
org.jruby.ast.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
Constructor Summary | |
ClassNode(ISourcePosition position,
java.lang.String className,
ScopeNode bodyNode,
INode superNode)
|
Method Summary | |
void |
accept(INodeVisitor iVisitor)
Accept for the visitor pattern. |
ScopeNode |
getBodyNode()
Gets the bodyNode. |
java.lang.String |
getClassName()
Gets the className. |
INode |
getSuperNode()
Gets the superNode. |
Methods inherited from class org.jruby.ast.AbstractNode |
getPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassNode(ISourcePosition position, java.lang.String className, ScopeNode bodyNode, INode superNode)
Method Detail |
public void accept(INodeVisitor iVisitor)
iVisitor
- the visitorpublic ScopeNode getBodyNode()
public java.lang.String getClassName()
public INode getSuperNode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |