public interface IMethod extends IMember, ContextItem
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IMethod.SourcePosition
BEGIN Custom change: precise positions
|
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) |
String |
getLocalVariableName(int bcIndex,
int localNumber) |
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;
|
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()
Did someone synthesize this method? (As opposed to reading it from a class file)
|
getAnnotations, getDeclaringClass, getName, isStaticgetClassHierarchyboolean isSynchronized()
boolean isClinit()
boolean isInit()
boolean isNative()
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, UnsupportedOperationException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionUnsupportedOperationExceptionint 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.InvalidClassFileExceptionString getLocalVariableName(int bcIndex, int localNumber)
String getSignature()
Selector getSelector()
Descriptor getDescriptor()
boolean hasLocalVariableTable()
Copyright © 2015. All rights reserved.