Package com.saxonica.ee.bytecode.util
Class ByteCodeTrace
- java.lang.Object
-
- com.saxonica.ee.bytecode.util.ByteCodeTrace
-
public class ByteCodeTrace extends java.lang.ObjectCalls to this class are inserted into the bytecode for debugging purposes
-
-
Constructor Summary
Constructors Constructor Description ByteCodeTrace()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbreakpoint(java.lang.Object obj)Ad-hoc method for use as a debugging breakpointstatic voidshowDoubleVariable(double value, java.lang.String variable)Output a message to identify the contents of a variable (which must hold a double)static voidshowIntVariable(java.lang.String variable, int value)Output a message to identify the contents of a variable (which must hold a int)static voidshowLongVariable(java.lang.String variable, long value)Output a message to identify the contents of a variable (which must hold a long)static voidshowMessage(java.lang.String message)Output a simple messagestatic voidshowObjectVariable(java.lang.String variable, java.lang.String value)Output a message to identify the contents of a variable (which must hold an Object)static voidtrace(int n)Implement a trace point
-
-
-
Method Detail
-
trace
public static void trace(int n)
Implement a trace point- Parameters:
n- the number allocated to the trace point
-
showMessage
public static void showMessage(java.lang.String message)
Output a simple message- Parameters:
message- the message
-
showObjectVariable
public static void showObjectVariable(java.lang.String variable, java.lang.String value)Output a message to identify the contents of a variable (which must hold an Object)- Parameters:
variable- the name of the variablevalue- the value of the variable
-
showLongVariable
public static void showLongVariable(java.lang.String variable, long value)Output a message to identify the contents of a variable (which must hold a long)- Parameters:
variable- the name of the variablevalue- the value of the variable
-
showIntVariable
public static void showIntVariable(java.lang.String variable, int value)Output a message to identify the contents of a variable (which must hold a int)- Parameters:
variable- the name of the variablevalue- the value of the variable
-
showDoubleVariable
public static void showDoubleVariable(double value, java.lang.String variable)Output a message to identify the contents of a variable (which must hold a double)- Parameters:
variable- the name of the variablevalue- the value of the variable
-
breakpoint
public static void breakpoint(java.lang.Object obj)
Ad-hoc method for use as a debugging breakpoint- Parameters:
obj- not currently used
-
-