public class CodeScanner
extends java.lang.Object
IMethods to gather information without building an IR.| Constructor and Description |
|---|
CodeScanner() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<TypeReference> |
getArraysWritten(IMethod m)
get the element types of the arrays that m may update
|
static java.util.List<TypeReference> |
getArraysWritten(SSAInstruction[] statements) |
static java.util.Collection<CallSiteReference> |
getCallSites(IMethod m) |
static java.util.Set<TypeReference> |
getCaughtExceptions(IMethod m) |
static java.util.Set<TypeReference> |
getCaughtExceptions(SSAInstruction[] statements) |
static java.util.Collection<FieldReference> |
getFieldsRead(IMethod m) |
static java.util.List<FieldReference> |
getFieldsRead(SSAInstruction[] statements) |
static java.util.Collection<FieldReference> |
getFieldsWritten(IMethod m) |
static java.util.List<FieldReference> |
getFieldsWritten(SSAInstruction[] statements) |
static java.util.Collection<NewSiteReference> |
getNewSites(IMethod m) |
static boolean |
hasObjectArrayLoad(IMethod m) |
static boolean |
hasObjectArrayLoad(SSAInstruction[] statements) |
static boolean |
hasObjectArrayStore(IMethod m) |
static boolean |
hasObjectArrayStore(SSAInstruction[] statements) |
static java.util.Iterator<TypeReference> |
iterateCastTypes(IMethod m)
Return the types this method may cast to
|
static java.util.Iterator<TypeReference> |
iterateCastTypes(SSAInstruction[] statements) |
public static java.util.Collection<CallSiteReference> getCallSites(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if m is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Collection<FieldReference> getFieldsRead(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if m is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Collection<FieldReference> getFieldsWritten(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if m is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Collection<TypeReference> getArraysWritten(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Collection<NewSiteReference> getNewSites(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if m is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static boolean hasObjectArrayLoad(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static boolean hasObjectArrayStore(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Set<TypeReference> getCaughtExceptions(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Iterator<TypeReference> iterateCastTypes(IMethod m) throws com.ibm.wala.shrikeCT.InvalidClassFileException
java.lang.IllegalArgumentException - if m is nullcom.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Set<TypeReference> getCaughtExceptions(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
Set<TypeReference>java.lang.IllegalArgumentException - if statements == nullpublic static java.util.Iterator<TypeReference> iterateCastTypes(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if statements == nullpublic static java.util.List<FieldReference> getFieldsRead(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
statements - list of ssa statementsjava.lang.IllegalArgumentException - if statements == nullpublic static java.util.List<FieldReference> getFieldsWritten(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
statements - list of ssa statementsjava.lang.IllegalArgumentException - if statements == nullpublic static java.util.List<TypeReference> getArraysWritten(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
statements - list of ssa statementsjava.lang.IllegalArgumentException - if statements == nullpublic static boolean hasObjectArrayLoad(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static boolean hasObjectArrayStore(SSAInstruction[] statements) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException