|
![]() SandMark version 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--sandmark.util.MethodID
|
+--sandmark.util.MethodNode
guilty party: andy lenards project: SandMark topic: Robust Source Code Obfuscation advisor: Dr. Christian Collberg location: University of Arizona, Computer Science Dept. date: Nov. 11, 2001 class: MethodNode.java use: Method Name Obfuscation, will be used to create interference graphs for method renaming.
| Field Summary |
| Fields inherited from class sandmark.util.MethodID |
MISSING_String, name, signature, sourceName, Static |
| Constructor Summary | |
MethodNode(java.lang.String classFrom,
java.lang.String method,
java.lang.String methodSignature)
Constructs a MethodNode object with three strings |
|
MethodNode(java.lang.String classFrom,
java.lang.String method,
java.lang.String methodSignature,
boolean Static)
|
|
| Method Summary | |
void |
addEdge(MethodNode node)
adds an edge from this node to the node passed as a parameter |
int |
compareTo(java.lang.Object obj)
compares two MethodNode objects and returns an integer value that represents which is less than, greater than, or equal |
java.util.Iterator |
connectedTo()
|
java.lang.String |
getClassName()
provides access to the class name |
java.lang.String |
getMethodName()
provides access to the method name |
java.lang.String |
getMethodSignature()
provides access to the method signature |
java.lang.String |
getNewName()
provides access to the new name that will be assigned to the method name |
static void |
main(java.lang.String[] andy)
|
int |
numEdges()
|
boolean |
removeEdge(MethodNode node)
removes an edge from this node to the node passed as a parameter iff there exists an edge between them |
void |
setDebug(boolean onOrOff)
|
void |
setNewName(java.lang.String name)
allows the new method name to be modified |
java.lang.String |
toString()
creates a string representation of the state of the MethodNode |
| Methods inherited from class sandmark.util.MethodID |
equals, hashCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MethodNode(java.lang.String classFrom,
java.lang.String method,
java.lang.String methodSignature)
classFrom - - string representation of the class which the
method is frommethod - - string representation of the method namemethodSignature - - string representation of the signature
of the method
public MethodNode(java.lang.String classFrom,
java.lang.String method,
java.lang.String methodSignature,
boolean Static)
| Method Detail |
public java.lang.String getMethodName()
public java.lang.String getClassName()
public java.lang.String getMethodSignature()
public java.lang.String getNewName()
public void setNewName(java.lang.String name)
name - - the new name of the methodpublic void setDebug(boolean onOrOff)
public void addEdge(MethodNode node)
node - - the node to add an edge topublic boolean removeEdge(MethodNode node)
node - - the node to remove an edge from
public java.util.Iterator connectedTo()
public int numEdges()
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class MethodIDpublic static void main(java.lang.String[] andy)
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||