public class DefaultCallGraphNode extends Object implements CallGraphNode
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCallSite(MethodReference method) |
boolean |
addCallSite(MethodReference method,
InstructionLocation location) |
boolean |
addClassAccess(String className,
InstructionLocation location) |
boolean |
addFieldAccess(FieldReference field,
InstructionLocation location) |
Collection<DefaultCallSite> |
getCallerCallSites()
Returns immutable collection of all call sites that call this method.
|
Collection<DefaultCallSite> |
getCallSites()
Returns immutable collection of all call sites that are in the method.
|
Collection<? extends ClassAccessSite> |
getClassAccessSites() |
Collection<DefaultFieldAccessSite> |
getFieldAccessSites() |
DefaultCallGraph |
getGraph()
Returns reference to entire call graph.
|
MethodReference |
getMethod()
Returns the method that this node represents.
|
public DefaultCallGraph getGraph()
CallGraphNodegetGraph in interface CallGraphNodepublic MethodReference getMethod()
CallGraphNodegetMethod in interface CallGraphNodepublic Collection<DefaultCallSite> getCallSites()
CallGraphNodegetCallSites in interface CallGraphNodepublic Collection<DefaultCallSite> getCallerCallSites()
CallGraphNodegetCallerCallSites in interface CallGraphNodepublic boolean addCallSite(MethodReference method, InstructionLocation location)
public boolean addCallSite(MethodReference method)
public Collection<DefaultFieldAccessSite> getFieldAccessSites()
getFieldAccessSites in interface CallGraphNodepublic boolean addFieldAccess(FieldReference field, InstructionLocation location)
public Collection<? extends ClassAccessSite> getClassAccessSites()
getClassAccessSites in interface CallGraphNodepublic boolean addClassAccess(String className, InstructionLocation location)
Copyright © 2015. All rights reserved.