Package qilin.core.pag
Class MethodParameter
java.lang.Object
qilin.core.pag.MethodParameter
Represents a synthetic pointer-assignment-graph variable for one of a method's special
argument-passing slots: an ordinary parameter at a given index (the base case, this class
itself), or the receiver (
this), the return value, or the thrown exception (the MethodParameter.This, MethodParameter.Return and MethodParameter.Throw subclasses). Use the of* factory methods to build
one, and isThis()/isReturn()/isThrowRet() to tell which kind you have,
rather than comparing against a magic sentinel index.- Author:
- Ondrej Lhotak
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetIndex()Returns the ordinary-parameter index.inthashCode()booleanisReturn()booleanisThis()booleanmethod()static MethodParameterofOrdinary(SootMethod m, int index) static MethodParameterstatic MethodParameterofThis(SootMethod m) static MethodParametertoString()
-
Method Details
-
ofOrdinary
-
ofThis
-
ofReturn
-
ofThrow
-
toString
-
getIndex
public int getIndex()Returns the ordinary-parameter index. Only valid on a plain (non-this/return/throw) instance; throws otherwise. -
isThis
public boolean isThis() -
isReturn
public boolean isReturn() -
isThrowRet
public boolean isThrowRet() -
method
-
equals
-
hashCode
public int hashCode()
-