public Iterator<TypeReference> iterateCastTypes(CGNode node) { SSAInstruction[] statements = getIR(node).getInstructions(); return CodeScanner.iterateCastTypes(statements); }
public Iterator<TypeReference> iterateCastTypes(CGNode node) { SSAInstruction[] statements = getIR(node).getInstructions(); return CodeScanner.iterateCastTypes(statements); }
public Iterator<TypeReference> iterateCastTypes(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } SpecializedFactoryMethod m = findOrCreateSpecializedFactoryMethod(node); try { return CodeScanner.iterateCastTypes(m); } catch (InvalidClassFileException e) { e.printStackTrace(); Assertions.UNREACHABLE(); return null; } }
public Iterator<TypeReference> iterateCastTypes(CGNode node) { if (node == null) { throw new IllegalArgumentException("node is null"); } SpecializedFactoryMethod m = findOrCreateSpecializedFactoryMethod(node); try { return CodeScanner.iterateCastTypes(m); } catch (InvalidClassFileException e) { e.printStackTrace(); Assertions.UNREACHABLE(); return null; } }
/** * Return the types this method may cast to * * @return iterator of TypeReference * @throws IllegalArgumentException if m is null */ public static Iterator<TypeReference> iterateCastTypes(IMethod m) throws InvalidClassFileException { if (m == null) { throw new IllegalArgumentException("m is null"); } if (m.isWalaSynthetic()) { SyntheticMethod sm = (SyntheticMethod) m; return iterateCastTypes(sm.getStatements()); } else { return iterateShrikeBTCastTypes((ShrikeCTMethod) m); } }
/** * Return the types this method may cast to * * @return iterator of TypeReference * @throws IllegalArgumentException if m is null */ public static Iterator<TypeReference> iterateCastTypes(IMethod m) throws InvalidClassFileException { if (m == null) { throw new IllegalArgumentException("m is null"); } if (m.isWalaSynthetic()) { SyntheticMethod sm = (SyntheticMethod) m; return iterateCastTypes(sm.getStatements()); } else { return iterateShrikeBTCastTypes((ShrikeCTMethod) m); } }