Class HexDirective
- java.lang.Object
-
- io.github.applecommander.bastools.api.Directive
-
- io.github.applecommander.bastools.api.directives.HexDirective
-
public class HexDirective extends Directive
A simple directive to introduce hexadecimal capabilities. StreamTokenizer does not appear to support syntax, so using a directive to introduce the capability.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.github.applecommander.bastools.api.Directive
Directive.Expression, Directive.MapExpression, Directive.SimpleExpression, Directive.Variable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME-
Fields inherited from class io.github.applecommander.bastools.api.Directive
config, ONLY_ONE, outputStream, ZERO, ZERO_OR_ONE
-
-
Constructor Summary
Constructors Constructor Description HexDirective(Configuration config, java.io.OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteBytes(int startAddress, Line line)Write directive contents to output file.-
Methods inherited from class io.github.applecommander.bastools.api.Directive
append, defaultBooleanExpression, optionalExpression, optionalIntegerExpression, optionalMapExpression, optionalStringExpression, requiredIntegerExpression, requiredStringExpression, resolve, validateSet
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HexDirective
public HexDirective(Configuration config, java.io.OutputStream outputStream)
-
-
Method Detail
-
writeBytes
public void writeBytes(int startAddress, Line line) throws java.io.IOExceptionDescription copied from class:DirectiveWrite directive contents to output file. Note that address is adjusted for the line header already.- Specified by:
writeBytesin classDirective- Throws:
java.io.IOException
-
-