org.jrubyparser.ast
Class Colon2Node

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.Colon3Node
          extended by 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).


Field Summary
protected  Node leftNode
           
 
Fields inherited from class org.jrubyparser.ast.Colon3Node
name
 
Constructor Summary
Colon2Node(SourcePosition position, Node leftNode, String name)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 Node getLeftNode()
          Gets the leftNode.
 NodeType getNodeType()
           
 boolean isSame(Node node)
          Checks node for 'sameness' for diffing.
 
Methods inherited from class org.jrubyparser.ast.Colon3Node
getLexicalName, getLexicalNamePosition, getName, getNamePosition, 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, isBlockParameter, 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
getLexicalName, getLexicalNamePosition, getName, getNamePosition, setName
 
Methods inherited from interface org.jrubyparser.ast.INameMatchable
isNameMatch
 

Field Detail

leftNode

protected Node leftNode
Constructor Detail

Colon2Node

public Colon2Node(SourcePosition position,
                  Node leftNode,
                  String name)
Method Detail

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.