|
||||||||||
| 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.BackRefNode
public class BackRefNode
Regexp back reference: - $& last successful match - $+ highest numbered group matched in last successful match. - $` what precedes the last successful match - $' what follows the last successful match
| Constructor Summary | |
|---|---|
BackRefNode(SourcePosition position,
int type)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern. |
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()
|
char |
getType()
Gets the type |
boolean |
isNameMatch(String name)
|
boolean |
isSame(Node other)
Checks node for 'sameness' for diffing. |
void |
setName(String newName)
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 BackRefNode(SourcePosition position,
int type)
| 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 iVisitor)
accept in class NodeiVisitor - the visitorpublic char getType()
public String getName()
INameNode
getName in interface INameNodepublic String getLexicalName()
INameNode
getLexicalName in interface INameNodepublic void setName(String newName)
INameNode
setName in interface INameNodepublic SourcePosition getNamePosition()
INameNode
getNamePosition in interface INameNodepublic SourcePosition getLexicalNamePosition()
INameNode
getLexicalNamePosition in interface INameNodepublic boolean isNameMatch(String name)
isNameMatch in interface INameMatchable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||