Class ASTNameCollector


  • public final class ASTNameCollector
    extends ASTVisitor
    A convenience visitor that collects names.
    Since:
    5.1
    • Constructor Detail

      • ASTNameCollector

        public ASTNameCollector​(char[] name)
        Constructs a name collector for the given name.
      • ASTNameCollector

        public ASTNameCollector​(String name)
        Constructs a name collector for the given name.
    • Method Detail

      • getNames

        public IASTName[] getNames()
        Returns the array of matching names.
      • clear

        public void clear()
        Clears the names found, such that the collector can be reused.