Tabnine Logo
FastHierarchy.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
soot.FastHierarchy
constructor

Best Java code snippets using soot.FastHierarchy.<init> (Showing top 19 results out of 315)

origin: Sable/soot

/**
 * Makes a new fast hierarchy is none is active, and returns the active fast hierarchy.
 */
public FastHierarchy getOrMakeFastHierarchy() {
 if (!hasFastHierarchy()) {
  setFastHierarchy(new FastHierarchy());
 }
 return getFastHierarchy();
}
origin: Sable/soot

protected boolean isThrowDeclared(Body b, SootClass throwClass) {
 if (hierarchy == null) {
  hierarchy = new FastHierarchy();
origin: Sable/soot

protected boolean isExceptionCaught(Body b, Stmt s, RefType throwType) {
 if (hierarchy == null) {
  hierarchy = new FastHierarchy();
 }
 Iterator it = b.getTraps().iterator();
 while (it.hasNext()) {
  Trap trap = (Trap) it.next();
  if (trap.getException().getType().equals(throwType)
    || hierarchy.isSubclass(throwType.getSootClass(), (trap.getException().getType()).getSootClass())) {
   if (isThrowInStmtRange(b, (Stmt) trap.getBeginUnit(), (Stmt) trap.getEndUnit(), s)) {
    return true;
   }
  }
 }
 return false;
}
origin: Sable/soot

public static soot.Local getThisGivenOuter(soot.Type sootType, HashMap getThisMap, soot.Body body, LocalGenerator lg,
  soot.Local t2) {
 if (InitialResolver.v().hierarchy() == null) {
  InitialResolver.v().hierarchy(new soot.FastHierarchy());
 }
 soot.FastHierarchy fh = InitialResolver.v().hierarchy();
 while (!fh.canStoreType(t2.getType(), sootType)) {
  soot.SootClass classToInvoke = ((soot.RefType) t2.getType()).getSootClass();
  // make an access method and add it to that class for accessing
  // its private this$0 field
  soot.SootMethod methToInvoke = makeOuterThisAccessMethod(classToInvoke);
  // generate a local that corresponds to the invoke of that meth
  soot.Local t3 = lg.generateLocal(methToInvoke.getReturnType());
  ArrayList methParams = new ArrayList();
  methParams.add(t2);
  soot.Local res = getPrivateAccessFieldInvoke(methToInvoke.makeRef(), methParams, body, lg);
  soot.jimple.AssignStmt assign = soot.jimple.Jimple.v().newAssignStmt(t3, res);
  body.getUnits().add(assign);
  t2 = t3;
 }
 getThisMap.put(sootType, t2);
 return t2;
}
origin: Sable/soot

Scene.v().setFastHierarchy(new FastHierarchy());
origin: Sable/soot

Scene.v().setFastHierarchy(new FastHierarchy());
origin: Sable/soot

public static soot.Local getThis(soot.Type sootType, soot.Body body, HashMap getThisMap, LocalGenerator lg) {
  InitialResolver.v().hierarchy(new soot.FastHierarchy());
origin: Sable/soot

Scene.v().setFastHierarchy(new FastHierarchy());
Scene.v().setFastHierarchy(new FastHierarchy());
origin: Sable/soot

Scene.v().setFastHierarchy(new FastHierarchy());
origin: Sable/soot

InitialResolver.v().hierarchy(new soot.FastHierarchy());
origin: Sable/soot

} else {
 if (InitialResolver.v().hierarchy() == null) {
  InitialResolver.v().hierarchy(new soot.FastHierarchy());
origin: ibinti/bugvm

/** Constructs a new empty set given a list of all locals and types that may
 * ever be in the set. */
public LocalTypeSet( List<Local> locals, List<Type> types ) {
super( locals.size() * types.size() );
this.locals = locals;
this.types = types;
if( !Scene.v().hasFastHierarchy() ) {
  Scene.v().setFastHierarchy( new FastHierarchy() );
}
}
/** Returns the number of the bit corresponding to the pair (l,t). */
origin: com.bugvm/bugvm-soot

/** Constructs a new empty set given a list of all locals and types that may
 * ever be in the set. */
public LocalTypeSet( List<Local> locals, List<Type> types ) {
super( locals.size() * types.size() );
this.locals = locals;
this.types = types;
if( !Scene.v().hasFastHierarchy() ) {
  Scene.v().setFastHierarchy( new FastHierarchy() );
}
}
/** Returns the number of the bit corresponding to the pair (l,t). */
origin: ibinti/bugvm

/** Makes a new fast hierarchy is none is active, and returns the active
 * fast hierarchy. */
public FastHierarchy getOrMakeFastHierarchy() {
if(!hasFastHierarchy() ) {
  setFastHierarchy( new FastHierarchy() );
}
return getFastHierarchy();
}
/**
origin: com.bugvm/bugvm-soot

/** Makes a new fast hierarchy is none is active, and returns the active
 * fast hierarchy. */
public FastHierarchy getOrMakeFastHierarchy() {
if(!hasFastHierarchy() ) {
  setFastHierarchy( new FastHierarchy() );
}
return getFastHierarchy();
}
/**
origin: ibinti/bugvm

protected boolean isThrowDeclared(Body b, SootClass throwClass){
  if (hierarchy == null){
    hierarchy = new FastHierarchy();
  }
  // handles case when exception is RuntimeException or Error
  if (throwClass.equals(Scene.v().getSootClass("java.lang.RuntimeException")) || throwClass.equals(Scene.v().getSootClass("java.lang.Error"))) return true;
  // handles case when exception is a subclass of RuntimeException or Error
  if (hierarchy.isSubclass(throwClass, Scene.v().getSootClass("java.lang.RuntimeException")) || hierarchy.isSubclass(throwClass, Scene.v().getSootClass("java.lang.Error"))) return true;
  // handles case when exact exception is thrown
  if (b.getMethod().throwsException(throwClass)) return true;
  // handles case when a super type of the exception is thrown
  Iterator<SootClass> it = b.getMethod().getExceptions().iterator();
  while (it.hasNext()){
    SootClass nextEx = it.next();
    if (hierarchy.isSubclass(throwClass, nextEx)) return true;
  }
  return false;
}
origin: com.bugvm/bugvm-soot

protected boolean isThrowDeclared(Body b, SootClass throwClass){
  if (hierarchy == null){
    hierarchy = new FastHierarchy();
  }
  // handles case when exception is RuntimeException or Error
  if (throwClass.equals(Scene.v().getSootClass("java.lang.RuntimeException")) || throwClass.equals(Scene.v().getSootClass("java.lang.Error"))) return true;
  // handles case when exception is a subclass of RuntimeException or Error
  if (hierarchy.isSubclass(throwClass, Scene.v().getSootClass("java.lang.RuntimeException")) || hierarchy.isSubclass(throwClass, Scene.v().getSootClass("java.lang.Error"))) return true;
  // handles case when exact exception is thrown
  if (b.getMethod().throwsException(throwClass)) return true;
  // handles case when a super type of the exception is thrown
  Iterator<SootClass> it = b.getMethod().getExceptions().iterator();
  while (it.hasNext()){
    SootClass nextEx = it.next();
    if (hierarchy.isSubclass(throwClass, nextEx)) return true;
  }
  return false;
}
origin: com.bugvm/bugvm-soot

protected boolean isExceptionCaught(Body b, Stmt s, RefType throwType){
  if (hierarchy == null){
    hierarchy = new FastHierarchy();
  }
  Iterator it = b.getTraps().iterator();
  while (it.hasNext()){
    Trap trap = (Trap)it.next();
    if (trap.getException().getType().equals(throwType) || hierarchy.isSubclass(throwType.getSootClass(), (trap.getException().getType()).getSootClass())){
      if (isThrowInStmtRange(b, (Stmt)trap.getBeginUnit(), (Stmt)trap.getEndUnit(), s)) return true;
    }
  }
  return false;
}
origin: ibinti/bugvm

protected boolean isExceptionCaught(Body b, Stmt s, RefType throwType){
  if (hierarchy == null){
    hierarchy = new FastHierarchy();
  }
  Iterator it = b.getTraps().iterator();
  while (it.hasNext()){
    Trap trap = (Trap)it.next();
    if (trap.getException().getType().equals(throwType) || hierarchy.isSubclass(throwType.getSootClass(), (trap.getException().getType()).getSootClass())){
      if (isThrowInStmtRange(b, (Stmt)trap.getBeginUnit(), (Stmt)trap.getEndUnit(), s)) return true;
    }
  }
  return false;
}
sootFastHierarchy<init>

Javadoc

Constructs a hierarchy from the current scene.

Popular methods of FastHierarchy

  • canStoreType
    Given an object of declared type child, returns true if the object can be stored in a variable of ty
  • isSubclass
    Return true if class child is a subclass of class parent, neither of them being allowed to be interf
  • canStoreClass
    Given an object of declared type child, returns true if the object can be stored in a variable of ty
  • dfsVisit
  • getAllImplementersOfInterface
    For an interface parent (MUST be an interface), returns set of all implementers of it but NOT their
  • getAllSubinterfaces
    For an interface parent (MUST be an interface), returns set of all subinterfaces.
  • getSubclassesOf
  • isVisible
    Returns true if the method m is visible from code in the class from.
  • resolveConcreteDispatch
    Given an object of actual type C (o = new C()), returns the method which will be called on an o.f()
  • put
  • canStoreClassClassic
    "Classic" implementation using the intuitive approach (without using Interval) to check whetherchild
  • resolveAbstractDispatch
    Given an object of declared type C, returns the methods which could be called on an o.f() invocation
  • canStoreClassClassic,
  • resolveAbstractDispatch

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JCheckBox (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now