Class Visitors
- java.lang.Object
-
- io.github.applecommander.bastools.api.Visitors
-
public class Visitors extends java.lang.ObjectThis 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisitors.PrintBuilder
-
Constructor Summary
Constructors Constructor Description Visitors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteVisitorbyteVisitor(Configuration config)static LineNumberTargetCollectorlineNumberTargetCollector()Collect all line numbers that are a target of GOTO, GOSUB, etc.static Visitors.PrintBuilderprintBuilder()static ReassignmentVisitorreassignVisitor(java.util.Map<java.lang.Integer,java.lang.Integer> reassignments)Rewrite the Program tree with the line number reassignments given.static VariableCollectorVisitorvariableCollectorVisitor()static VisitorvariableReportVisitor()
-
-
-
Method Detail
-
printBuilder
public static Visitors.PrintBuilder printBuilder()
-
byteVisitor
public static ByteVisitor byteVisitor(Configuration config)
-
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.
-
variableCollectorVisitor
public static VariableCollectorVisitor variableCollectorVisitor()
-
variableReportVisitor
public static Visitor variableReportVisitor()
-
-