org.jrubyparser.ast
Class CommentNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.SyntaxNode
          extended by org.jrubyparser.ast.CommentNode
All Implemented Interfaces:
ISourcePositionHolder

public class CommentNode
extends SyntaxNode

Representation of a comment. Note that comments are not part of evaluation so you do not get the ability to visit this node as part of evaluation. In theory we could add this if we envisioned some wacky annotation system, but we have no crazy ideas yet.


Constructor Summary
CommentNode(SourcePosition position, String content)
           
 
Method Summary
 Object accept(NodeVisitor visitor)
           
 NodeType getNodeType()
           
 String toString()
           
 
Methods inherited from class org.jrubyparser.ast.SyntaxNode
getContent
 
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, isSame, setParent, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommentNode

public CommentNode(SourcePosition position,
                   String content)
Method Detail

getNodeType

public NodeType getNodeType()
Overrides:
getNodeType in class SyntaxNode
Returns:
the nodeId

accept

public Object accept(NodeVisitor visitor)
Overrides:
accept in class SyntaxNode

toString

public String toString()
Overrides:
toString in class Node


Copyright © 2013. All Rights Reserved.