/** * Optionally add a name for a local variable. */ public void setLocalName(final int number, final String name) { localNames.put(number, Atom.findOrCreateAsciiAtom(name)); }
public MiniModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, final AndroidComponent forCompo) { super(cha, options, cache); this.forCompo = forCompo; this.name = Atom.findOrCreateAsciiAtom(forCompo.getPrettyName() + "Model"); //this.activityModel = getMethod(); }
/** * Convert a TypeName back to an Atom. */ protected static Atom type2atom(TypeName type) { return Atom.findOrCreateAsciiAtom(type.toString()); }
public Intent(TypeName action, Atom uri) { this(Atom.findOrCreateAsciiAtom(action.toString()), uri); } public Intent(TypeName action) {
/** * Reduces the Callgraph to only the nodes that we need */ private static CallGraph computeFilteredCallgraph(final CallGraph cg) { final HashSet<Atom> filterSet = new HashSet<>(); final Atom worldClinit = Atom.findOrCreateAsciiAtom("fakeWorldClinit"); filterSet.add(worldClinit); filterSet.add(MethodReference.initAtom); final CallGraphFilter filter = new CallGraphFilter(filterSet); return filter.filter(cg); }
/** * Convert a TypeName back to an Atom. */ protected static Atom type2atom(TypeName type) { return Atom.findOrCreateAsciiAtom(type.toString()); }
public ExternalModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, AndroidComponent target) { super(cha, options, cache); if (target == null) { throw new IllegalArgumentException("The component type requested to create an ExternalModel for was null"); } this.name = Atom.findOrCreateAsciiAtom("startExternal" + target.toString()); // this.target = target; }
public ExternalModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, AndroidComponent target) { super(cha, options, cache); if (target == null) { throw new IllegalArgumentException("The component type requested to create an ExternalModel for was null"); } this.name = Atom.findOrCreateAsciiAtom("startExternal" + target.toString()); // this.target = target; }
/** * Convert a TypeName back to an Atom. */ protected static Atom type2atom(TypeName type) { return Atom.findOrCreateAsciiAtom(type.toString()); }
public MiniModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, final AndroidComponent forCompo) { super(cha, options, cache); this.forCompo = forCompo; this.name = Atom.findOrCreateAsciiAtom(forCompo.getPrettyName() + "Model"); //this.activityModel = getMethod(); }
private enum Explicit { UNSET, IMPLICIT, EXPLICIT, /** An other target was set for an explicit Intent */ MULTI }
private enum Explicit { UNSET, IMPLICIT, EXPLICIT, /** An other target was set for an explicit Intent */ MULTI }
public SystemServiceModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); if (target == null) { throw new IllegalArgumentException("The target requested to create an SystemServiceModel for was null"); } String sName = target.toString(); String cName = Character.toUpperCase(sName.charAt(0)) + sName.substring(1); this.name = Atom.findOrCreateAsciiAtom("startSystemService" + cName); this.target = target.toString(); }
public SystemServiceModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); if (target == null) { throw new IllegalArgumentException("The target requested to create an SystemServiceModel for was null"); } String sName = target.toString(); String cName = Character.toUpperCase(sName.charAt(0)) + sName.substring(1); this.name = Atom.findOrCreateAsciiAtom("startSystemService" + cName); this.target = target.toString(); }
public Intent findOrCreate(final InstanceKey key, String action) { final Intent intent = findOrCreate(key); final Atom foundAction = intent.getAction(); if (! foundAction.equals(Atom.findOrCreateAsciiAtom(action))) { throw new IllegalArgumentException("Actions differ (" + action + ", " + foundAction.toString() + ") for Intent " + key); } return intent; }
public MicroModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); this.target = target; this.name = Atom.concat(Atom.findOrCreateAsciiAtom("start"), target.right(target.rIndex((byte)'/') - 1)); }
public Intent findOrCreate(final InstanceKey key, String action) { final Intent intent = findOrCreate(key); final Atom foundAction = intent.getAction(); if (! foundAction.equals(Atom.findOrCreateAsciiAtom(action))) { throw new IllegalArgumentException("Actions differ (" + action + ", " + foundAction.toString() + ") for Intent " + key); } return intent; }
public MicroModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); this.target = target; this.name = Atom.concat(Atom.findOrCreateAsciiAtom("start"), target.right(target.rIndex((byte)'/') - 1)); }
public IntentModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); this.target = target; this.name = Atom.concat(Atom.findOrCreateAsciiAtom("intent"), target.right(target.rIndex((byte)'/') - 1)); }
public IntentModel(final IClassHierarchy cha, final AnalysisOptions options, final IAnalysisCacheView cache, Atom target) { super(cha, options, cache); this.target = target; this.name = Atom.concat(Atom.findOrCreateAsciiAtom("intent"), target.right(target.rIndex((byte)'/') - 1)); }