public class GetStaticGraph extends Object
getStaticFields returns that information.| Modifier and Type | Method and Description |
|---|---|
void |
addStaticFieldRead(String owner,
String methodName,
String targetClass,
String targetField)
Add a static field read (bytecode instruction GETSTATIC) to the graph
|
void |
addStaticMethodCall(String owner,
String methodName,
String targetClass,
String targetMethod)
Add a static method call (bytecode instruction INVOKESTATIC) to the graph.
|
boolean |
equals(Object obj) |
Set<String> |
getSourceClasses()
Returns the set of class names (with dots) of those classes
such that there is a at least one edge and the class is the source of
the edge.
|
Map<String,Set<String>> |
getStaticFields()
Returns a classname->set(fieldname) with those static fields reached by
static methods (included
|
Set<String> |
getTargetClasses()
Returns the set of class names (with dots) of those classes
such that there is a at least one edge and the class is the target of
the edge.
|
int |
hashCode() |
boolean |
hasStaticFieldRead(String owner,
String methodName,
String targetClass,
String targetField)
Returns if there is a static field read egde (GETSTATIC bytecode
instruction)from
|
boolean |
hasStaticMethodCall(String owner,
String methodName,
String targetClass,
String targetMethod)
Returns if there is a static method call egde (INVOKESTATIC bytecode
instruction) from
|
public boolean hasStaticMethodCall(String owner, String methodName, String targetClass, String targetMethod)
owner - methodName - targetClass - targetMethod - public void addStaticMethodCall(String owner, String methodName, String targetClass, String targetMethod)
owner - methodName - targetClass - targetMethod - public boolean hasStaticFieldRead(String owner, String methodName, String targetClass, String targetField)
owner - methodName - targetClass - targetField - public void addStaticFieldRead(String owner, String methodName, String targetClass, String targetField)
owner - methodName - targetClass - targetField - public Set<String> getSourceClasses()
public Set<String> getTargetClasses()
Copyright © 2010–2017 EvoSuite. All rights reserved.