|
||||||||||
| 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.FCallNode
public class FCallNode
Represents a method call with self as an implicit receiver.
| Field Summary | |
|---|---|
protected Node |
iterNode
|
protected String |
name
|
| Constructor Summary | |
|---|---|
FCallNode(SourcePosition position,
String name,
Node argsNode)
|
|
FCallNode(SourcePosition position,
String name,
Node argsNode,
Node iterNode)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
Node |
getArgs()
|
Node |
getArgsNode()
Deprecated. |
Node |
getIter()
|
Node |
getIterNode()
Deprecated. |
String |
getLexicalName()
Get the name including any leading sigils. |
SourcePosition |
getLexicalNamePosition()
The position of the name + any sigils that come with it. |
String |
getName()
Gets the name. |
SourcePosition |
getNamePosition()
The position of just the name part of the node. |
NodeType |
getNodeType()
|
boolean |
hasParens()
|
boolean |
isNameMatch(String name)
|
boolean |
isSame(Node node)
Checks node for 'sameness' for diffing. |
void |
setArgs(Node argsNode)
|
Node |
setArgsNode(Node argsNode)
Deprecated. |
void |
setHasParens(boolean hasParens)
|
void |
setIter(Node iter)
|
Node |
setIterNode(Node iterNode)
|
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 |
| Field Detail |
|---|
protected Node iterNode
protected String name
| Constructor Detail |
|---|
public FCallNode(SourcePosition position,
String name,
Node argsNode)
public FCallNode(SourcePosition position,
String name,
Node argsNode,
Node iterNode)
| 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 boolean hasParens()
hasParens in interface IArgumentNodepublic void setHasParens(boolean hasParens)
setHasParens in interface IArgumentNode@Deprecated public Node getIterNode()
public Node getIter()
getIter in interface BlockAcceptingNodepublic Node setIterNode(Node iterNode)
public void setIter(Node iter)
setIter in interface BlockAcceptingNode@Deprecated public Node getArgsNode()
public Node getArgs()
getArgs in interface IArgumentNode@Deprecated public Node setArgsNode(Node argsNode)
argsNode - set the arguments for this node.public void setArgs(Node argsNode)
setArgs in interface IArgumentNodepublic String getLexicalName()
INameNode
getLexicalName in interface INameNodepublic String getName()
getName in interface INameNodepublic void setName(String name)
INameNode
setName in interface INameNodepublic boolean isNameMatch(String name)
isNameMatch in interface INameMatchablepublic 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 | |||||||||