org.jrubyparser.ast
Interface ILocalVariable

All Superinterfaces:
INameMatchable, INameNode
All Known Subinterfaces:
IParameter
All Known Implementing Classes:
ArgumentNode, BlockArgNode, DAsgnNode, DVarNode, KeywordRestArgNode, LocalAsgnNode, LocalVarNode, RestArgNode, TypedArgumentNode, UnnamedRestArgNode

public interface ILocalVariable
extends INameNode

Simple marker interface to indicate this node type is a type of local variable (block or local).


Method Summary
 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.
 List<ILocalVariable> getOccurrences()
          Find all occurences of this variable including itself.
 
Methods inherited from interface org.jrubyparser.ast.INameNode
getLexicalName, getLexicalNamePosition, getName, getNamePosition, setName
 
Methods inherited from interface org.jrubyparser.ast.INameMatchable
isNameMatch
 

Method Detail

getDefinedScope

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.


getDeclaration

ILocalVariable getDeclaration()
Retrieve the node which is responsible for declaring this one. This can be a variable or a parameter.


getOccurrences

List<ILocalVariable> getOccurrences()
Find all occurences of this variable including itself.



Copyright © 2013. All Rights Reserved.