|
||||||||||
| 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.NamedNode
org.jrubyparser.ast.DVarNode
public class DVarNode
Access a dynamic variable (e.g. block scope local variable).
| Constructor Summary | |
|---|---|
DVarNode(SourcePosition position,
int location,
String name)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
ILocalVariable |
getDeclaration()
Retrieve the node which is responsible for declaring this one. |
IScope |
getDefinedScope()
Which Variable Scope does this variable belong to? Note that RootNode is a special ILocalScope for the implicit scope created at top-level. |
int |
getDepth()
How many scopes should we burrow down to until we need to set the block variable value. |
int |
getIndex()
Gets the index within the scope construct that actually holds the eval'd value of this local variable |
NodeType |
getNodeType()
|
List<ILocalVariable> |
getOccurrences()
Find all occurences of this variable including itself. |
boolean |
isBlockParameter()
Is this node specifying a parameter in a block statement? |
| Methods inherited from class org.jrubyparser.ast.NamedNode |
|---|
getLexicalName, getLexicalNamePosition, getName, getNamePosition, isNameMatch, isSame, setName |
| 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, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jrubyparser.ast.INameNode |
|---|
getLexicalName, getLexicalNamePosition, getName, getNamePosition, setName |
| Methods inherited from interface org.jrubyparser.ast.INameMatchable |
|---|
isNameMatch |
| Constructor Detail |
|---|
public DVarNode(SourcePosition position,
int location,
String name)
| Method Detail |
|---|
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitorpublic int getDepth()
public int getIndex()
public boolean isBlockParameter()
Node
isBlockParameter in class Nodepublic IScope getDefinedScope()
ILocalVariable
getDefinedScope in interface ILocalVariablepublic List<ILocalVariable> getOccurrences()
ILocalVariable
getOccurrences in interface ILocalVariablepublic ILocalVariable getDeclaration()
ILocalVariable
getDeclaration in interface ILocalVariable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||