public GeneralConstObject(Type t, String n) { this.type = t; this.name = n; this.id = G.v().GeneralConstObject_counter++; }
/** Returns an iterator over any globals read/written. */ public Set getGlobals() { if (isFull) { return G.v().MethodRWSet_allGlobals; } if (globals == null) { return Collections.EMPTY_SET; } return globals; }
public void outASTMethodNode(ASTMethodNode node) { if (changed) { G.v().ASTTransformations_modified = true; } }
public void set_Name() { if (name == null) { name = "label_" + Integer.toString(G.v().SETNodeLabel_uniqueId++); } }
public BasicBlock(Instruction headinsn, Instruction tailinsn) { id = G.v().coffi_BasicBlock_ids++; head = headinsn; tail = tailinsn; succ = new Vector<BasicBlock>(2, 10); pred = new Vector<BasicBlock>(2, 3); }
/** * Returns the single instance of <code>PedanticThrowAnalysis</code>. * * @return Soot's <code>PedanticThrowAnalysis</code>. */ public static PedanticThrowAnalysis v() { return G.v().soot_toolkits_exceptions_PedanticThrowAnalysis(); }
/** * Returns the single instance of <code>AltClassLoader</code>, which loads classes from the classpath set by the most * recent call to its {@link #setAltClassPath}. * * @return Soot's <code>AltClassLoader</code>. */ public static AltClassLoader v() { return G.v().soot_util_cfgcmd_AltClassLoader(); }
/** * Singleton getter. * * @return returns instance of {@link MethodRenamer} */ public static MethodRenamer v() { return G.v().soot_jbco_jimpleTransformations_MethodRenamer(); }
/** * Returns the single instance of <code>UnitThrowAnalysis</code>. * * @return Soot's <code>UnitThrowAnalysis</code>. */ public static UnitThrowAnalysis v() { return G.v().soot_toolkits_exceptions_UnitThrowAnalysis(); }
/** * Returns the single instance of <code>DalvikThrowAnalysis</code>. * * @return Soot's <code>UnitThrowAnalysis</code>. */ public static DalvikThrowAnalysis v() { return G.v().soot_dexpler_DalvikThrowAnalysis(); }
/** * Returns the single instance of <code>PhaseDumper</code>. * * @return Soot's <code>PhaseDumper</code>. */ public static PhaseDumper v() { return G.v().soot_util_PhaseDumper(); }
/** * Singleton getter. * * @return returns instance of {@link ClassRenamer} */ public static ClassRenamer v() { return G.v().soot_jbco_jimpleTransformations_ClassRenamer(); }
/** * Singleton getter. * * @return returns instance of {@link FieldRenamer} */ public static FieldRenamer v() { return G.v().soot_jbco_jimpleTransformations_FieldRenamer(); }
/** * Checks if {@link IJbcoTransform jbco transformer} can log extra information. * * @return {@code true} when {@link IJbcoTransform jbco transformer} can log extra information; {@code false} otherwise */ default boolean isVerbose() { return G.v().soot_options_Options().verbose() || soot.jbco.Main.jbcoVerbose; }
public void applyBugFixes() { ASTNode AST = (ASTNode) this.getUnits().getFirst(); debug("applyBugFixes", "Applying AST analyzes for method" + this.getMethod().toString()); AST.apply(new ShortcutIfGenerator()); debug("applyBugFixes", "after ShortcutIfGenerator" + G.v().ASTTransformations_modified); AST.apply(new TypeCastingError()); debug("applyBugFixes", "after TypeCastingError" + G.v().ASTTransformations_modified); }