Class SourceRangeVerifier

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTVisitor
org.aspectj.org.eclipse.jdt.internal.core.dom.SourceRangeVerifier

public class SourceRangeVerifier extends ASTVisitor
  • Field Details

    • DEBUG

      public static boolean DEBUG
    • DEBUG_THROW

      public static boolean DEBUG_THROW
  • Constructor Details

    • SourceRangeVerifier

      public SourceRangeVerifier()
  • Method Details

    • process

      public String process(ASTNode node)
      Verifies proper node nesting as specified in ASTParser.setKind(int):

      Source ranges nest properly: the source range for a child is always within the source range of its parent, and the source ranges of sibling nodes never overlap.

      Parameters:
      node -
      Returns:
      null if everything is OK; a list of errors otherwise
    • preVisit2

      public boolean preVisit2(ASTNode node)
      Description copied from class: ASTVisitor
      Visits the given AST node prior to the type-specific visit (before visit).

      The default implementation calls ASTVisitor.preVisit(ASTNode) and then returns true. Subclasses may reimplement.

      Overrides:
      preVisit2 in class ASTVisitor
      Parameters:
      node - the node to visit
      Returns:
      true if visit(node) should be called, and false otherwise.
      See Also:
      ASTVisitor.preVisit(ASTNode)