org.jruby.ast
Class ClassNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.ClassNode
All Implemented Interfaces:
INode, java.io.Serializable

public class ClassNode
extends AbstractNode

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

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

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

ClassNode

public ClassNode(ISourcePosition position,
                 java.lang.String className,
                 ScopeNode bodyNode,
                 INode superNode)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getBodyNode

public ScopeNode getBodyNode()
Gets the bodyNode.

Returns:
Returns a ScopeNode

getClassName

public java.lang.String getClassName()
Gets the className.

Returns:
Returns a String

getSuperNode

public INode getSuperNode()
Gets the superNode.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.