Klasse 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
  • Felddetails

    • DEBUG

      public static boolean DEBUG
    • DEBUG_THROW

      public static boolean DEBUG_THROW
  • Konstruktordetails

    • SourceRangeVerifier

      public SourceRangeVerifier()
  • Methodendetails

    • 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.

      Parameter:
      node -
      Gibt zurück:
      null if everything is OK; a list of errors otherwise
    • preVisit2

      public boolean preVisit2(ASTNode node)
      Beschreibung aus Klasse kopiert: 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.

      Setzt außer Kraft:
      preVisit2 in Klasse ASTVisitor
      Parameter:
      node - the node to visit
      Gibt zurück:
      true if visit(node) should be called, and false otherwise.
      Siehe auch: