From 5d39cc364ece8fd933eb1b8612e7b7dfd1432dcc Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Sun, 27 Jul 2014 23:10:57 +0200 Subject: [PATCH] refactor - packages --- src/{ => com/qumaster/transformations}/TransMessages.java | 7 ++++--- .../qumaster/transformations/mjc2wsl}/mjc2wsl.java | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) rename src/{ => com/qumaster/transformations}/TransMessages.java (90%) rename src/{ => com/qumaster/transformations/mjc2wsl}/mjc2wsl.java (99%) diff --git a/src/TransMessages.java b/src/com/qumaster/transformations/TransMessages.java similarity index 90% rename from src/TransMessages.java rename to src/com/qumaster/transformations/TransMessages.java index 5880c79..286a3d0 100644 --- a/src/TransMessages.java +++ b/src/com/qumaster/transformations/TransMessages.java @@ -1,3 +1,4 @@ +package com.qumaster.transformations; /* Copyright (C) 2014 Doni Pracner @@ -37,18 +38,18 @@ public class TransMessages { this.messageCounters = new int[TransMessages.M_QUIET]; } - void message(String mes, int level){ + public void message(String mes, int level){ if (level>=getPrintLevel()) { outStream.println(mes); } messageCounters[level]++; } - void printMessageCounters(PrintStream out){ + public void printMessageCounters(PrintStream out){ out.println("total errors:"+messageCounters[TransMessages.M_ERR]+" warnings:"+messageCounters[TransMessages.M_WAR]); } - void printMessageCounters(){ + public void printMessageCounters(){ printMessageCounters(outStream); } diff --git a/src/mjc2wsl.java b/src/com/qumaster/transformations/mjc2wsl/mjc2wsl.java similarity index 99% rename from src/mjc2wsl.java rename to src/com/qumaster/transformations/mjc2wsl/mjc2wsl.java index dec76fe..de00850 100644 --- a/src/mjc2wsl.java +++ b/src/com/qumaster/transformations/mjc2wsl/mjc2wsl.java @@ -1,3 +1,4 @@ +package com.qumaster.transformations.mjc2wsl; /* Copyright (C) 2014 Doni Pracner @@ -19,6 +20,8 @@ import java.io.*; import java.util.*; +import com.qumaster.transformations.TransMessages; + /** * This program converts file from compiled MicroJava bytecode to WSL language * which is a part of the FermaT Transformation system. MicroJava is a subset -- 2.25.1