Constructor and Description |
---|
CodeScanner() |
public static Collection<CallSiteReference> getCallSites(IMethod m) throws InvalidClassFileException
InvalidClassFileException
IllegalArgumentException
- if m is nullpublic static Collection<FieldReference> getFieldsRead(IMethod m) throws InvalidClassFileException
InvalidClassFileException
IllegalArgumentException
- if m is nullpublic static Collection<FieldReference> getFieldsWritten(IMethod m) throws InvalidClassFileException
InvalidClassFileException
IllegalArgumentException
- if m is nullpublic static Collection<TypeReference> getArraysWritten(IMethod m) throws InvalidClassFileException
InvalidClassFileException
public static Collection<NewSiteReference> getNewSites(IMethod m) throws InvalidClassFileException
InvalidClassFileException
IllegalArgumentException
- if m is nullpublic static boolean hasObjectArrayLoad(IMethod m) throws InvalidClassFileException
InvalidClassFileException
public static boolean hasObjectArrayStore(IMethod m) throws InvalidClassFileException
InvalidClassFileException
public static Set getCaughtExceptions(IMethod m) throws InvalidClassFileException
InvalidClassFileException
public static Iterator iterateCastTypes(IMethod m) throws InvalidClassFileException
InvalidClassFileException
IllegalArgumentException
- if m is nullpublic static Set<TypeReference> getCaughtExceptions(Language l, SSAInstruction[] statements) throws IllegalArgumentException
IllegalArgumentException
- if statements == nullpublic static Iterator<TypeReference> iterateCastTypes(SSAInstruction[] statements) throws IllegalArgumentException
IllegalArgumentException
- if statements == nullpublic static List<FieldReference> getFieldsRead(SSAInstruction[] statements) throws IllegalArgumentException
statements
- list of ssa statementsIllegalArgumentException
- if statements == nullpublic static List<FieldReference> getFieldsWritten(SSAInstruction[] statements) throws IllegalArgumentException
statements
- list of ssa statementsIllegalArgumentException
- if statements == nullpublic static List<TypeReference> getArraysWritten(SSAInstruction[] statements) throws IllegalArgumentException
statements
- list of ssa statementsIllegalArgumentException
- if statements == nullpublic static boolean hasObjectArrayLoad(SSAInstruction[] statements) throws IllegalArgumentException
IllegalArgumentException
public static boolean hasObjectArrayStore(SSAInstruction[] statements) throws IllegalArgumentException
IllegalArgumentException