org.deft.extension.tools.astmodifier.syntax
Class NoSyntaxCheckerVisitor

java.lang.Object
  extended by org.deft.extension.tools.astmodifier.syntax.SyntaxCheckerVisitor
      extended by org.deft.extension.tools.astmodifier.syntax.NoSyntaxCheckerVisitor

public class NoSyntaxCheckerVisitor
extends SyntaxCheckerVisitor

Inserting of every type in any position is allowed.

Author:
Martin Heinzerling

Constructor Summary
NoSyntaxCheckerVisitor()
           
 
Method Summary
 boolean check(org.deft.repository.ast.TreeNode parent, org.deft.repository.ast.TreeNode insert, int insertAt)
          Checks if a insertion is syntactical correct.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSyntaxCheckerVisitor

public NoSyntaxCheckerVisitor()
Method Detail

check

public boolean check(org.deft.repository.ast.TreeNode parent,
                     org.deft.repository.ast.TreeNode insert,
                     int insertAt)
Description copied from class: SyntaxCheckerVisitor
Checks if a insertion is syntactical correct.

Specified by:
check in class SyntaxCheckerVisitor
Parameters:
parent - TreeNode parent node
insert - TreeNode node to insert
insertAt - int index of position in parents childs
Returns:
true if insertion is syntactical correct.