|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrubyparser.ast.Node
org.jrubyparser.ast.ClassNode
public class ClassNode
A class statement (name, superClass, body). Classes bodies also define their own scope.
| Constructor Summary | |
|---|---|
ClassNode(SourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode,
Node superNode)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
Node |
getBody()
Gets the body of this class. |
Node |
getBodyNode()
Deprecated. |
Colon3Node |
getCPath()
Gets the className. |
List<MethodDefNode> |
getMethodDefs()
Returns a list of all Method Nodes included in the module's ast. |
NodeType |
getNodeType()
|
StaticScope |
getScope()
Get the static scoping information. |
Node |
getSuper()
Gets the superNode. |
Node |
getSuperNode()
Deprecated. |
List<ILocalVariable> |
getVariableReferencesNamed(String name)
|
boolean |
isSame(Node node)
Checks node for 'sameness' for diffing. |
| Methods inherited from class org.jrubyparser.ast.Node |
|---|
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassNode(SourcePosition position,
Colon3Node cpath,
StaticScope scope,
Node bodyNode,
Node superNode)
| Method Detail |
|---|
public boolean isSame(Node node)
isSame in class Nodenode - to be compared to
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitorpublic Node getBody()
@Deprecated public Node getBodyNode()
public StaticScope getScope()
public Colon3Node getCPath()
getCPath in interface IScopingNodepublic Node getSuper()
@Deprecated public Node getSuperNode()
public List<MethodDefNode> getMethodDefs()
getMethodDefs in interface IModuleScopepublic List<ILocalVariable> getVariableReferencesNamed(String name)
getVariableReferencesNamed in interface IScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||