org.jrubyparser.ast
Class Colon2Node
java.lang.Object
org.jrubyparser.ast.Node
org.jrubyparser.ast.Colon3Node
org.jrubyparser.ast.Colon2Node
- All Implemented Interfaces:
- INameMatchable, INameNode, ISourcePositionHolder
- Direct Known Subclasses:
- Colon2ConstNode, Colon2ImplicitNode, Colon2MethodNode
public abstract class Colon2Node
- extends Colon3Node
- implements INameNode
Represents a '::' constant access or method call (Java::JavaClass).
| 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 |
leftNode
protected Node leftNode
Colon2Node
public Colon2Node(SourcePosition position,
Node leftNode,
String name)
isSame
public boolean isSame(Node node)
- Checks node for 'sameness' for diffing.
- Overrides:
isSame in class Colon3Node
- Parameters:
node - to be compared to
- Returns:
- Returns a boolean
getNodeType
public NodeType getNodeType()
- Overrides:
getNodeType in class Colon3Node
- Returns:
- the nodeId
accept
public Object accept(NodeVisitor iVisitor)
- Accept for the visitor pattern.
- Overrides:
accept in class Colon3Node
- Parameters:
iVisitor - the visitor
getLeftNode
public Node getLeftNode()
- Gets the leftNode.
- Returns:
- Returns a Node
Copyright © 2013. All Rights Reserved.