org.deft.extension.tools.astmodifier.comment
Class CommentTypeVisitor

java.lang.Object
  extended by org.deft.extension.tools.astmodifier.comment.CommentTypeVisitor
Direct Known Subclasses:
JavaBlockCommentVisitor, JavaLineCommentVisitor

public abstract class CommentTypeVisitor
extends java.lang.Object

Defines an interface for transformation from treenodes of the AST to comment nodes.

Author:
Martin Heinzerling

Constructor Summary
CommentTypeVisitor()
           
 
Method Summary
abstract  java.util.List<org.deft.repository.ast.TreeNode> execute(java.util.List<org.deft.repository.ast.TreeNode> nodes)
          Transform treenodes in a list of comment nodes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentTypeVisitor

public CommentTypeVisitor()
Method Detail

execute

public abstract java.util.List<org.deft.repository.ast.TreeNode> execute(java.util.List<org.deft.repository.ast.TreeNode> nodes)
Transform treenodes in a list of comment nodes.

Parameters:
nodes - treenodes
Returns:
List of comment nodes