Class PacteDebug

java.lang.Object
org.ampere.base.util.PacteDebug

public class PacteDebug extends Object
Runtime debuging
Author:
hmorel
  • Method Details

    • getSingleton

      public static PacteDebug getSingleton()
    • start

      public void start(boolean condition)
    • startWith

      public static void startWith(String name, String target)
    • endWith_

      public static boolean endWith_(String string, String end)
    • endWith

      public static void endWith(String name, String target)
    • endWith

      public boolean endWith(String string, String end, boolean startingCondition)
      Debug for a end string condition
      Parameters:
      string - to be tested
      end - defined searched end of string
      startingCondition - if true, the debugger must be started
      Returns:
      true if the debugger must break.
    • debugIntGE

      public static void debugIntGE(int i, int target)
      Introduce a debug point when a int is greater or equal to a target
      Parameters:
      i - current value
      target - targeted value
    • matchInt_

      public static boolean matchInt_(int i, int target)
    • matchInt

      public boolean matchInt(int i, int target, boolean startingCondition)
    • debugInt

      public static void debugInt(int i, int target)
      Debug for a int value matching
      Parameters:
      i - tested value
      target - defined target
    • matchName_

      public static boolean matchName_(String found, String expected)
    • matchName

      public boolean matchName(String name, String target, boolean startingCondition)
      Debug for a name condition
      Parameters:
      name - to be tested
      target - defined target
      startingCondition - if true, the debugger must be started
      Returns:
      true if the debugger must break.
    • debugName

      public static void debugName(String name, String target)
      Debug for a name matching
      Parameters:
      name - to be tested
      target - defined target
    • debugCondition

      public boolean debugCondition(boolean ok, boolean startingCondition)
    • toString

      public String toString()
      Overrides:
      toString in class Object