|
||||||||||
| 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.IterNode
public class IterNode
Represents a block.
| Constructor Summary | |
|---|---|
IterNode(SourcePosition position,
ArgsNode args,
Node body,
StaticScope scope)
|
|
IterNode(SourcePosition position,
Node varNode,
StaticScope scope,
Node bodyNode)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
Node |
getBody()
Gets the bodyNode. |
Node |
getBodyNode()
Deprecated. |
NodeType |
getNodeType()
|
ILocalVariable |
getParameterNamed(String name)
|
StaticScope |
getScope()
|
Node |
getVar()
Gets the varNode. |
List<ILocalVariable> |
getVariableReferencesNamed(String name)
|
Node |
getVarNode()
Deprecated. |
boolean |
isParameterUsed(String name)
Given a name (presumably retrieve via getNormativeSignatureNameList()) is this parmeter used in this method definition? |
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 IterNode(SourcePosition position,
Node varNode,
StaticScope scope,
Node bodyNode)
public IterNode(SourcePosition position,
ArgsNode args,
Node body,
StaticScope scope)
| 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 StaticScope getScope()
public Node getBody()
@Deprecated public Node getBodyNode()
public Node getVar()
@Deprecated public Node getVarNode()
public boolean isParameterUsed(String name)
isParameterUsed in interface IParameterScopename -
public ILocalVariable getParameterNamed(String name)
getParameterNamed in interface IParameterScopepublic 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 | |||||||||