public interface IMethod extends IMember, ContextItem
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IMethod.SourcePosition |
ContextItem.Value<T>| Modifier and Type | Method and Description |
|---|---|
TypeReference[] |
getDeclaredExceptions() |
Descriptor |
getDescriptor()
something like: (IILjava.lang.String;SLjava.sql.Date;)Ljava.lang.Integer;
|
int |
getLineNumber(int bcIndex) |
java.lang.String |
getLocalVariableName(int bcIndex,
int localNumber) |
default int |
getNumberOfDefaultParameters() |
int |
getNumberOfParameters()
Method getNumberOfParameters.
|
IMethod.SourcePosition |
getParameterSourcePosition(int paramNum) |
TypeReference |
getParameterType(int i)
By convention, for a non-static method, getParameterType(0) is the this pointer
|
MethodReference |
getReference() |
TypeReference |
getReturnType() |
Selector |
getSelector()
something like: foo(Ljava/langString;)Ljava/lang/Class;
|
java.lang.String |
getSignature()
something like:
com.foo.bar.createLargeOrder(IILjava.lang.String;SLjava.sql.Date;)Ljava.lang.Integer;
|
IMethod.SourcePosition |
getSourcePosition(int instructionIndex) |
boolean |
hasExceptionHandler() |
boolean |
hasLocalVariableTable() |
boolean |
isAbstract()
Is this method abstract?
|
boolean |
isBridge()
Is this method a bridge method? See JLS 3rd Edition 15.12.4.5
|
boolean |
isClinit()
Is this method a class initializer?
|
boolean |
isFinal()
Is this method final?
|
boolean |
isInit()
Is this method an object initializer?
|
boolean |
isNative()
Is this method native?
|
boolean |
isPrivate()
Is this method private?
|
boolean |
isProtected()
Is this method protected?
|
boolean |
isPublic()
Is this method public?
|
boolean |
isSynchronized()
Is this method synchronized?
|
boolean |
isSynthetic()
Is this method synthetic, i.e., compiler-generated (this refers to the synthetic flag in
java/dex bytecode)
|
boolean |
isWalaSynthetic()
Is the implementation of this method a model generated by WALA? For compiler-generated
synthetic methods, refer to
isSynthetic() |
getAnnotations, getDeclaringClass, getName, isStaticgetClassHierarchyboolean isSynchronized()
boolean isClinit()
boolean isInit()
boolean isNative()
boolean isWalaSynthetic()
isSynthetic()boolean isSynthetic()
boolean isAbstract()
boolean isPrivate()
boolean isProtected()
boolean isPublic()
boolean isFinal()
boolean isBridge()
MethodReference getReference()
boolean hasExceptionHandler()
TypeReference getParameterType(int i)
TypeReference getReturnType()
int getNumberOfParameters()
TypeReference[] getDeclaredExceptions() throws com.ibm.wala.shrikeCT.InvalidClassFileException, java.lang.UnsupportedOperationException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionjava.lang.UnsupportedOperationExceptionint getLineNumber(int bcIndex)
IMethod.SourcePosition getSourcePosition(int instructionIndex) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionIMethod.SourcePosition getParameterSourcePosition(int paramNum) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionjava.lang.String getLocalVariableName(int bcIndex,
int localNumber)
java.lang.String getSignature()
Selector getSelector()
Descriptor getDescriptor()
boolean hasLocalVariableTable()
default int getNumberOfDefaultParameters()