SandMark version 2.0


sandmark
Class Scripting2

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--sandmark.Scripting2
All Implemented Interfaces:
java.lang.Runnable

public class Scripting2
extends java.lang.Thread

Commands: * set PROPERTY VALUE Set the property value. The following property values can be set: "DWM_CT_AnnotatorClass" "DWM_CT_Encode_NodeType" "DWM_CT_Encode_ParentClass" "DWM_CT_Encode_ClassName" "DWM_CT_Encode_AvailableEdges" "DWM_CT_Encode_StoreWhat" "DWM_CT_Encode_StoreMethods" "DWM_CT_Encode_StoreLocation" "DWM_CT_Encode_ProtectionMethods" "DWM_CT_Encode_IndividualFixups" "DWM_CT_Encode_Encoding" one of "perm", "radix", ..., "*" "*" picks a random encoding method. "DWM_CT_Encode_Components" "DWM_CT_Encode_Package" "DWM_MaxTracePoints" "DWM_CT_Encode_StoreLocation" one of 'formal' or 'global' "DWM_CT_DumpIR" "DWM_ClassPath" * trace input.jar trace.tra MAINCLASS ARGUMENTS Run tracing. The classpath is set through the 'set DWM_ClassPath ...' command. Tracepoints are written to the trace.tra file. * embed input.jar output.jar watermark trace.tra Embed watermark in input.jar, creating output.jar. Read the tracepoints from trace.tra. * obfuscate input.jar output.jar Obfuscate input.jar, creating output.jar. * recognize input.jar watermark_count MAINCLASS ARGUMENTS Run recognition. The classpath is set through the 'set DWM_ClassPath ...' command. If the first non-blank character on a line is # the rest of the line is ignored. Commands are case insensitive, arguments are case sensitive.

Author:
Siwei Shen

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Scripting2(SandMarkFrame frame, java.lang.String file)
           
 
Method Summary
(package private) static boolean check(java.lang.String[] instr, boolean wrong, java.lang.String error)
           
(package private) static boolean checkArgCount(java.lang.String[] instr, int min_count)
           
(package private) static java.lang.String mapToPane(java.lang.String pane)
           
 void run()
           
static void runScript(SandMarkFrame frame, java.lang.String file)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scripting2

public Scripting2(SandMarkFrame frame,
                  java.lang.String file)
           throws java.lang.Exception
Method Detail

runScript

public static void runScript(SandMarkFrame frame,
                             java.lang.String file)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

check

static boolean check(java.lang.String[] instr,
                     boolean wrong,
                     java.lang.String error)

checkArgCount

static boolean checkArgCount(java.lang.String[] instr,
                             int min_count)

mapToPane

static java.lang.String mapToPane(java.lang.String pane)
                           throws java.lang.Exception
java.lang.Exception

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002