//-------------------------------------------------------------------------------------------------- // // @ CopyRight Roberti & Parau Enterprises, Inc. 2021-2023 // // This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. // To view a copy of this license, visit http://creativecommons.org/licenses/by-nd/4.0/ // or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. // //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- // // Code returned by opCode processor // //-------------------------------------------------------------------------------------------------- package framework; import java.math.BigInteger; public class DVCode { public DVCode() { this.source= null; this.code= null; this.hexCode= null; this.details= null; } public DVCode(byte[] code, String hexCode, String details) { this.source= null; this.code= code; this.hexCode= hexCode; this.details= details; } public DVCode(String format, Object ... objects) { this.source= null; this.code= null; this.hexCode= null; this.details= String.format(format, objects); } public DVCode(byte[] code, String hexCode, String format, Object ... objects) { this.source= null; this.code= code; this.hexCode= hexCode; this.details= String.format(format, objects); } public DVCode(String source, byte[] code, String hexCode, String format, Object ... objects) { this.source= source; this.code= code; this.hexCode= hexCode; this.details= String.format(format, objects); } public DVCode(String source, String details) { this.source= source; this.code= null; this.hexCode= null; this.details= details; } public void add(DVCode lastCode, String source, byte[] code, String hexCode, String format, Object ... objects) { lastCode.next= new DVCode(source, code, hexCode, format, objects); } public void add(DVCode lastCode, String source, String details) { lastCode.next= new DVCode(null, source, details); } public String source; public BigInteger offset= null; public byte[] code; public String hexCode; public String details; public DVCode next; }