Class ByteVisitor
- java.lang.Object
-
- io.github.applecommander.bastools.api.visitors.ByteVisitor
-
-
Constructor Summary
Constructors Constructor Description ByteVisitor(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]dump(Program program)A convenience method to invokeProgram.accept(Visitor)andgetBytes().byte[]getBytes()java.util.Map<java.lang.Integer,java.lang.Integer>getLineAddresses()intlength(Line line)A convenience method to get the length of a line.Linevisit(Line line)Programvisit(Program program)Tokenvisit(Token token)
-
-
-
Constructor Detail
-
ByteVisitor
public ByteVisitor(Configuration config)
-
-
Method Detail
-
dump
public byte[] dump(Program program)
A convenience method to invokeProgram.accept(Visitor)andgetBytes().
-
length
public int length(Line line)
A convenience method to get the length of a line.
-
getLineAddresses
public java.util.Map<java.lang.Integer,java.lang.Integer> getLineAddresses()
-
getBytes
public byte[] getBytes()
-
-