|
||||||||||
| 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.BlockArgNode
public class BlockArgNode
An explicit block argument (&my_block) in a declaration (at call sites see BlockPassNode).
| Constructor Summary | |
|---|---|
BlockArgNode(SourcePosition position,
ArgumentNode argNode)
|
|
BlockArgNode(SourcePosition position,
int count,
String name)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
int |
getCount()
Gets the count. |
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. |
String |
getLexicalName()
Get the name including any leading sigils. |
SourcePosition |
getLexicalNamePosition()
The position of the name + any sigils that come with it. |
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 |
isBlockParameter()
Is this node specifying a parameter in a block statement? |
boolean |
isSame(Node other)
Checks node for 'sameness' for diffing. |
| Methods inherited from class org.jrubyparser.ast.NamedNode |
|---|
getName, isNameMatch, 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 |
|---|
getName, setName |
| Methods inherited from interface org.jrubyparser.ast.INameMatchable |
|---|
isNameMatch |
| Constructor Detail |
|---|
public BlockArgNode(SourcePosition position,
int count,
String name)
public BlockArgNode(SourcePosition position,
ArgumentNode argNode)
| Method Detail |
|---|
public boolean isSame(Node other)
isSame in class NamedNodeother - to be compared to
public NodeType getNodeType()
getNodeType in class Nodepublic String getLexicalName()
INameNode
getLexicalName in interface INameNodegetLexicalName in class NamedNodepublic Object accept(NodeVisitor iVisitor)
accept in class NodeiVisitor - the visitorpublic int getCount()
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 ILocalVariablepublic SourcePosition getNamePosition()
INameNode
getNamePosition in interface INameNodegetNamePosition in class NamedNodepublic SourcePosition getLexicalNamePosition()
INameNode
getLexicalNamePosition in interface INameNodegetLexicalNamePosition in class NamedNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||