Class Visitors


  • public class Visitors
    extends java.lang.Object
    This class presents all of the common Visitor implementations via builder patterns. The number is currently small enough that all the builders and visitors are defined in this one class.
    • Constructor Detail

      • Visitors

        public Visitors()
    • Method Detail

      • reassignVisitor

        public static ReassignmentVisitor reassignVisitor​(java.util.Map<java.lang.Integer,​java.lang.Integer> reassignments)
        Rewrite the Program tree with the line number reassignments given.
      • lineNumberTargetCollector

        public static LineNumberTargetCollector lineNumberTargetCollector()
        Collect all line numbers that are a target of GOTO, GOSUB, etc.
      • variableReportVisitor

        public static Visitor variableReportVisitor()