public class DexIMethod extends Object implements com.ibm.wala.classLoader.IBytecodeMethod
| Modifier and Type | Field and Description |
|---|---|
protected InstructionArray |
instructions |
protected DexIClass |
myClass
The declaring class for this method.
|
| Constructor and Description |
|---|
DexIMethod(org.jf.dexlib.ClassDataItem.EncodedMethod encodedMethod,
DexIClass klass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAddressFromIndex(int index) |
Collection<com.ibm.wala.types.annotations.Annotation> |
getAnnotations() |
Collection<com.ibm.wala.types.annotations.Annotation> |
getAnnotations(boolean runtimeInvisible) |
int |
getBytecodeIndex(int i) |
Collection<com.ibm.wala.classLoader.CallSiteReference> |
getCallSites() |
com.ibm.wala.ipa.cha.IClassHierarchy |
getClassHierarchy() |
com.ibm.wala.types.TypeReference[] |
getDeclaredExceptions() |
com.ibm.wala.classLoader.IClass |
getDeclaringClass() |
com.ibm.wala.types.Descriptor |
getDescriptor() |
Instruction[] |
getDexInstructions() |
int |
getExceptionReg() |
com.ibm.wala.shrikeBT.ExceptionHandler[][] |
getHandlers() |
com.ibm.wala.shrikeBT.IndirectionData |
getIndirectionData() |
Instruction |
getInstructionFromIndex(int instructionIndex) |
int |
getInstructionIndex(int bytecodeindex) |
com.ibm.wala.shrikeBT.IInstruction[] |
getInstructions() |
int |
getLineNumber(int bcIndex) |
String |
getLocalVariableName(int bcIndex,
int localNumber) |
int |
getMaxLocals()
XXX not fully about the + 2.
|
int |
getMaxStackHeight() |
com.ibm.wala.util.strings.Atom |
getName() |
int |
getNumberOfParameterRegisters() |
int |
getNumberOfParameters() |
Collection<com.ibm.wala.types.annotations.Annotation>[] |
getParameterAnnotations() |
com.ibm.wala.classLoader.IMethod.SourcePosition |
getParameterSourcePosition(int paramNum) |
com.ibm.wala.types.TypeReference |
getParameterType(int index) |
com.ibm.wala.types.MethodReference |
getReference() |
int |
getReturnReg() |
com.ibm.wala.types.TypeReference |
getReturnType() |
com.ibm.wala.types.Selector |
getSelector() |
String |
getSignature() |
com.ibm.wala.classLoader.IMethod.SourcePosition |
getSourcePosition(int instructionIndex) |
static int |
getTotalInsts() |
protected void |
handleINVOKE_VIRTUAL(int instLoc,
String cname,
String mname,
String pname,
int[] args,
org.jf.dexlib.Code.Opcode opcode) |
boolean |
hasExceptionHandler() |
int |
hashCode() |
boolean |
hasLocalVariableTable() |
protected InstructionArray |
instructions() |
boolean |
isAbstract() |
boolean |
isBridge() |
boolean |
isClinit() |
boolean |
isFinal() |
boolean |
isInit() |
boolean |
isNative() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynchronized() |
boolean |
isSynthetic() |
boolean |
isVolatile() |
protected void |
parseBytecode() |
org.jf.dexlib.ClassDataItem.EncodedMethod |
toEncodedMethod() |
String |
toString() |
protected final DexIClass myClass
protected InstructionArray instructions
public DexIMethod(org.jf.dexlib.ClassDataItem.EncodedMethod encodedMethod,
DexIClass klass)
public static int getTotalInsts()
public org.jf.dexlib.ClassDataItem.EncodedMethod toEncodedMethod()
public com.ibm.wala.types.TypeReference[] getDeclaredExceptions()
throws com.ibm.wala.shrikeCT.InvalidClassFileException,
UnsupportedOperationException
getDeclaredExceptions in interface com.ibm.wala.classLoader.IMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionUnsupportedOperationExceptionpublic String getLocalVariableName(int bcIndex, int localNumber)
getLocalVariableName in interface com.ibm.wala.classLoader.IMethodpublic int getMaxLocals()
ShrikeCTMethod.getMaxLocals()public int getReturnReg()
public int getExceptionReg()
public int getMaxStackHeight()
public com.ibm.wala.types.Descriptor getDescriptor()
getDescriptor in interface com.ibm.wala.classLoader.IMethodpublic int getNumberOfParameters()
getNumberOfParameters in interface com.ibm.wala.classLoader.IMethodpublic int getNumberOfParameterRegisters()
public com.ibm.wala.types.TypeReference getParameterType(int index)
getParameterType in interface com.ibm.wala.classLoader.IMethodpublic com.ibm.wala.types.MethodReference getReference()
getReference in interface com.ibm.wala.classLoader.IMethodpublic com.ibm.wala.types.TypeReference getReturnType()
getReturnType in interface com.ibm.wala.classLoader.IMethodpublic com.ibm.wala.types.Selector getSelector()
getSelector in interface com.ibm.wala.classLoader.IMethodpublic String getSignature()
getSignature in interface com.ibm.wala.classLoader.IMethodpublic boolean hasExceptionHandler()
hasExceptionHandler in interface com.ibm.wala.classLoader.IMethodpublic boolean hasLocalVariableTable()
hasLocalVariableTable in interface com.ibm.wala.classLoader.IMethodpublic boolean isAbstract()
isAbstract in interface com.ibm.wala.classLoader.IMethodpublic boolean isClinit()
isClinit in interface com.ibm.wala.classLoader.IMethodpublic boolean isFinal()
isFinal in interface com.ibm.wala.classLoader.IMethodpublic boolean isInit()
isInit in interface com.ibm.wala.classLoader.IMethodpublic boolean isNative()
isNative in interface com.ibm.wala.classLoader.IMethodpublic boolean isBridge()
isBridge in interface com.ibm.wala.classLoader.IMethodpublic boolean isPrivate()
isPrivate in interface com.ibm.wala.classLoader.IMethodpublic boolean isProtected()
isProtected in interface com.ibm.wala.classLoader.IMethodpublic boolean isPublic()
isPublic in interface com.ibm.wala.classLoader.IMethodpublic boolean isSynchronized()
isSynchronized in interface com.ibm.wala.classLoader.IMethodpublic boolean isSynthetic()
isSynthetic in interface com.ibm.wala.classLoader.IMethodpublic boolean isStatic()
isStatic in interface com.ibm.wala.classLoader.IMemberpublic boolean isVolatile()
public com.ibm.wala.classLoader.IClass getDeclaringClass()
getDeclaringClass in interface com.ibm.wala.classLoader.IMemberpublic com.ibm.wala.ipa.cha.IClassHierarchy getClassHierarchy()
getClassHierarchy in interface com.ibm.wala.ipa.cha.IClassHierarchyDwellerpublic com.ibm.wala.util.strings.Atom getName()
getName in interface com.ibm.wala.classLoader.IMemberpublic int getLineNumber(int bcIndex)
getLineNumber in interface com.ibm.wala.classLoader.IMethodpublic boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int getBytecodeIndex(int i)
throws com.ibm.wala.shrikeCT.InvalidClassFileException
getBytecodeIndex in interface com.ibm.wala.classLoader.IBytecodeMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic com.ibm.wala.shrikeBT.ExceptionHandler[][] getHandlers()
throws com.ibm.wala.shrikeCT.InvalidClassFileException
getHandlers in interface com.ibm.wala.classLoader.IBytecodeMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic com.ibm.wala.shrikeBT.IInstruction[] getInstructions()
getInstructions in interface com.ibm.wala.classLoader.IBytecodeMethodprotected void parseBytecode()
protected void handleINVOKE_VIRTUAL(int instLoc,
String cname,
String mname,
String pname,
int[] args,
org.jf.dexlib.Code.Opcode opcode)
public Instruction[] getDexInstructions()
protected InstructionArray instructions()
public int getAddressFromIndex(int index)
public int getInstructionIndex(int bytecodeindex)
getInstructionIndex in interface com.ibm.wala.classLoader.IBytecodeMethodpublic Instruction getInstructionFromIndex(int instructionIndex)
public com.ibm.wala.shrikeBT.IndirectionData getIndirectionData()
getIndirectionData in interface com.ibm.wala.classLoader.IBytecodeMethodpublic Collection<com.ibm.wala.classLoader.CallSiteReference> getCallSites() throws com.ibm.wala.shrikeCT.InvalidClassFileException
getCallSites in interface com.ibm.wala.classLoader.IBytecodeMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionUnsupportedOperationExceptionpublic com.ibm.wala.classLoader.IMethod.SourcePosition getSourcePosition(int instructionIndex)
throws com.ibm.wala.shrikeCT.InvalidClassFileException
getSourcePosition in interface com.ibm.wala.classLoader.IMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic com.ibm.wala.classLoader.IMethod.SourcePosition getParameterSourcePosition(int paramNum)
throws com.ibm.wala.shrikeCT.InvalidClassFileException
getParameterSourcePosition in interface com.ibm.wala.classLoader.IMethodcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic Collection<com.ibm.wala.types.annotations.Annotation> getAnnotations()
getAnnotations in interface com.ibm.wala.classLoader.IMemberpublic Collection<com.ibm.wala.types.annotations.Annotation> getAnnotations(boolean runtimeInvisible)
getAnnotations in interface com.ibm.wala.classLoader.IBytecodeMethodpublic Collection<com.ibm.wala.types.annotations.Annotation>[] getParameterAnnotations()
getParameterAnnotations in interface com.ibm.wala.classLoader.IBytecodeMethodCopyright © 2017. All rights reserved.