|
||||||||||
| 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.ArgumentNode
public class ArgumentNode
Simple Node that allows editor projects to keep position info in AST (evaluation does not need this).
| Constructor Summary | |
|---|---|
ArgumentNode(SourcePosition position,
String identifier)
|
|
ArgumentNode(SourcePosition position,
String identifier,
int location)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
|
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 |
String |
getLexicalName()
Get the name including any leading sigils. |
SourcePosition |
getLexicalNamePosition()
The position of the name + any sigils that come with it. |
String |
getName()
Get the plain name without sigils. |
SourcePosition |
getNamePosition()
The position of just the name part of the node. |
NodeType |
getNodeType()
|
List<ILocalVariable> |
getOccurrences()
Find all occurences of this variable including itself. |
boolean |
isNameMatch(String name)
|
boolean |
isSame(Node other)
Checks node for 'sameness' for diffing. |
void |
setName(String name)
Set the name (name should not include sigils). |
| 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 ArgumentNode(SourcePosition position,
String identifier)
public ArgumentNode(SourcePosition position,
String identifier,
int location)
| Method Detail |
|---|
public boolean isSame(Node other)
isSame in class Nodeother - to be compared to
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor visitor)
accept in class Nodepublic int getDepth()
public int getIndex()
public String getLexicalName()
INameNode
getLexicalName in interface INameNodepublic String getName()
INameNode
getName in interface INameNodepublic void setName(String name)
INameNode
setName in interface INameNodepublic boolean isNameMatch(String name)
isNameMatch in interface INameMatchablepublic IScope getDefinedScope()
ILocalVariable
getDefinedScope in interface ILocalVariablepublic List<ILocalVariable> getOccurrences()
ILocalVariable
getOccurrences in interface ILocalVariablepublic ILocalVariable getDeclaration()
ILocalVariable
getDeclaration in interface ILocalVariablepublic SourcePosition getNamePosition()
INameNode
getNamePosition in interface INameNodepublic SourcePosition getLexicalNamePosition()
INameNode
getLexicalNamePosition in interface INameNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||