/** * Assembles the source code. * * @param var the variable to assign the value to */ @Override public void assemble(Register var) throws IOException { AssembleExpression.assembleIfRequired(this.fontFace); String write = name + " " + var + " " + this.fontFace; if (this.height != null) { AssembleExpression.assembleIfRequired(this.height); write += " " + this.height; if (this.weight != null) { AssembleExpression.assembleIfRequired(this.weight); write += " " + this.weight; if (this.italic != null) { AssembleExpression.assembleIfRequired(this.italic); if (this.italic.getBooleanValue() == true) write += " /ITALIC"; if (this.underline != null) { AssembleExpression.assembleIfRequired(this.underline); if (this.underline.getBooleanValue() == true) write += " /UNDERLINE"; if (this.strike != null) { AssembleExpression.assembleIfRequired(this.strike); if (this.strike.getBooleanValue() == true) write += " /STRIKE"; } } } } } ScriptParser.writeLine(write); }
/** Assembles the source code. */ @Override public void assemble() throws IOException { AssembleExpression.assembleIfRequired(this.value); ScriptParser.writeLine(name + " " + this.value); }