sootup.analysis.interprocedural.icfg.CalleeMethodSignature Maven / Gradle / Ivy
package sootup.analysis.interprocedural.icfg;
/*-
* #%L
* Soot - a J*va Optimization Framework
* %%
* Copyright (C) 2022 Kadiray Karakaya and others
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import sootup.core.jimple.common.stmt.Stmt;
import sootup.core.signatures.MethodSignature;
/** Method Signature with its calling CallGraphEdgeType and sourceStmt that invokes the call */
public class CalleeMethodSignature {
private CGEdgeUtil.CallGraphEdgeType edgeType;
private MethodSignature methodSignature;
/**
* The unit at which the call occurs; may be null for calls not occurring at a specific statement
* (eg. calls in native code)
*/
private Stmt sourceStmt;
public CalleeMethodSignature(
MethodSignature methodSignature, CGEdgeUtil.CallGraphEdgeType edgeType, Stmt sourceStmt) {
this.methodSignature = methodSignature;
this.edgeType = edgeType;
this.sourceStmt = sourceStmt;
}
public MethodSignature getMethodSignature() {
return methodSignature;
}
public CGEdgeUtil.CallGraphEdgeType getEdgeType() {
return edgeType;
}
public Stmt getSourceStmt() {
return sourceStmt;
}
}