org.jrubyparser.ast
Class CommentNode
java.lang.Object
org.jrubyparser.ast.Node
org.jrubyparser.ast.SyntaxNode
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.
| 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 |
CommentNode
public CommentNode(SourcePosition position,
String content)
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.